summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--_bump.sh6
-rw-r--r--libusb/version.h2
2 files changed, 3 insertions, 5 deletions
diff --git a/_bump.sh b/_bump.sh
index cfeb785..6c006cc 100644
--- a/_bump.sh
+++ b/_bump.sh
@@ -27,10 +27,8 @@ OFFSET=10000
TAGVER=`expr $TAGVER + 1`
TAGVER_OFF=`expr $TAGVER + $OFFSET`
echo "Bumping version to pbr$TAGVER (nano: $TAGVER_OFF)"
-sed -e "s/\(^m4_define(LIBUSB_NANO.*\)/m4_define(LIBUSB_NANO, [$TAGVER_OFF])/" configure.ac >> configure.ac~
-mv configure.ac~ configure.ac
# we're duplicating libusb_version.h generation here, but that avoids having to run configure
-sed -e "s/\(^#define LIBUSB_VERSION_NANO.*\)/#define LIBUSB_VERSION_NANO $TAGVER_OFF/" libusb/libusb_version.h > libusb/libusb_version.h~
-mv libusb/libusb_version.h~ libusb/libusb_version.h
+sed -e "s/\(^#define\s*LIBUSB_NANO.*\)/#define LIBUSB_NANO $TAGVER_OFF/" libusb/version.h > libusb/version.h~
+mv libusb/version.h~ libusb/version.h
git commit -a -m "[internal] bumped internal version" -e
git tag "pbr$TAGVER" \ No newline at end of file
diff --git a/libusb/version.h b/libusb/version.h
index d8334ec..eee58a4 100644
--- a/libusb/version.h
+++ b/libusb/version.h
@@ -9,5 +9,5 @@
#define LIBUSB_MICRO 8
#endif
#ifndef LIBUSB_NANO
-#define LIBUSB_NANO 0
+#define LIBUSB_NANO 10337
#endif