summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChris Dickens <christopher.a.dickens@gmail.com>2020-08-18 09:28:27 -0700
committerChris Dickens <christopher.a.dickens@gmail.com>2020-08-18 09:28:27 -0700
commitee089f2e658472e0b0881064a366236ce9fa38be (patch)
tree66d871c168aae3092ed2f30f54c88b5aeab4ecc2
parent37e8b1334e59485e1d4735f5f67b31eba37ae5c9 (diff)
downloadlibusb-ee089f2e658472e0b0881064a366236ce9fa38be.tar.gz
Autotools: Use built-in shell tests and exec autoreconf
Signed-off-by: Chris Dickens <christopher.a.dickens@gmail.com>
-rwxr-xr-xautogen.sh2
-rwxr-xr-xbootstrap.sh6
-rw-r--r--libusb/version_nano.h2
3 files changed, 6 insertions, 4 deletions
diff --git a/autogen.sh b/autogen.sh
index 24f39ee..62d68e5 100755
--- a/autogen.sh
+++ b/autogen.sh
@@ -3,6 +3,6 @@
set -e
./bootstrap.sh
-if test -z "$NOCONFIGURE"; then
+if [ -z "$NOCONFIGURE" ]; then
exec ./configure --enable-examples-build --enable-tests-build "$@"
fi
diff --git a/bootstrap.sh b/bootstrap.sh
index dc56539..cfd2b45 100755
--- a/bootstrap.sh
+++ b/bootstrap.sh
@@ -1,6 +1,8 @@
#!/bin/sh
-if ! test -d m4 ; then
+set -e
+
+if [ ! -d m4 ]; then
mkdir m4
fi
-autoreconf -ivf || exit 1
+exec autoreconf -ivf
diff --git a/libusb/version_nano.h b/libusb/version_nano.h
index dfaf221..3951592 100644
--- a/libusb/version_nano.h
+++ b/libusb/version_nano.h
@@ -1 +1 @@
-#define LIBUSB_NANO 11538
+#define LIBUSB_NANO 11539