Skip to content

Commit

Permalink
Merge branch 'master' of git://git.kernel.org/pub/scm/linux/kernel/gi…
Browse files Browse the repository at this point in the history
…t/kay/usbutils

Conflicts:
	Makefile.am
  • Loading branch information
gregkh committed Apr 30, 2009
2 parents dfa8fe8 + 07f2d3c commit 0ab13fb
Show file tree
Hide file tree
Showing 5 changed files with 25 additions and 5 deletions.
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -15,4 +15,5 @@ depcomp
install-sh
missing
lsusb

lsusb.8
update-usbids.sh
20 changes: 18 additions & 2 deletions Makefile.am
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,9 @@ endif
sbin_PROGRAMS = \
lsusb

sbin_SCRIPTS = \
update-usbids.sh

lsusb_SOURCES = \
lsusb.c \
lsusb-t.c \
Expand All @@ -27,15 +30,28 @@ lsusb_CPPFLAGS = \
lsusb_LDADD = \
$(LIBUSB_LIBS)

dist_man_MANS = \
man_MANS = \
lsusb.8

EXTRA_DIST = \
usb.ids \
update-usbids.sh
update-usbids.sh.in \
lsusb.8.in

usb.ids.gz: $(srcdir)/usb.ids
gzip -c -9 $< > $@

update-usbids.sh: $(srcdir)/update-usbids.sh.in
sed 's|@usbids@|$(datadir)/usb.ids|g' $< >$@
chmod 755 $@

lsusb.8: $(srcdir)/lsusb.8.in
sed 's|@usbids@|$(datadir)/usb.ids|g' $< >$@

DISTCLEANFILES = \
usb.ids.gz \
lsusb.8 \
update-usbids.sh

distclean-local:
rm -rf autom4te.cache
3 changes: 3 additions & 0 deletions configure.ac
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@ AC_INIT([usbutils],
[[email protected]])
AC_PREREQ(2.60)
AM_INIT_AUTOMAKE([check-news foreign 1.9 dist-bzip2])
AC_PREFIX_DEFAULT([/usr])

AC_USE_SYSTEM_EXTENSIONS
AC_SYS_LARGEFILE

Expand Down Expand Up @@ -38,6 +40,7 @@ AC_MSG_RESULT([
prefix: ${prefix}
datarootdir: ${datarootdir}
datadir: ${datadir}
mandir: ${mandir}
usb.ids: ${datadir}/usb.ids
Expand Down
2 changes: 1 addition & 1 deletion lsusb.8 → lsusb.8.in
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ If the specified device is not found, a non-zero exit code is returned.

.SH FILES
.TP
.B /usr/share/usb.ids
.B @usbids@
A list of all known USB ID's (vendors, products, classes, subclasses and protocols).

.SH SEE ALSO
Expand Down
2 changes: 1 addition & 1 deletion update-usbids.sh → update-usbids.sh.in
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

set -e
SRC="http://www.linux-usb.org/usb.ids"
DEST=usb.ids
DEST=@usbids@

# if usb.ids is read-only (because the filesystem is read-only),
# then just skip this whole process.
Expand Down

0 comments on commit 0ab13fb

Please sign in to comment.