diff options
author | Pete Batard <pbatard@gmail.com> | 2011-02-22 15:59:43 +0000 |
---|---|---|
committer | Pete Batard <pbatard@gmail.com> | 2011-02-22 15:59:43 +0000 |
commit | 5e41ada56179598d8790ba98d6d0126aaf1c7de2 (patch) | |
tree | 7032dd530aab1214881ce546fabce78adb726992 /_bump.sh | |
parent | ad42c29145970d262fea026a736d0f7d0e89b4c8 (diff) | |
download | libusb-5e41ada56179598d8790ba98d6d0126aaf1c7de2.tar.gz |
[internal] use pbk and offset 8000pbk330
Diffstat (limited to '_bump.sh')
-rw-r--r-- | _bump.sh | 10 |
1 files changed, 5 insertions, 5 deletions
@@ -14,8 +14,8 @@ if [ ! -n "$1" ]; then else TAG=$1 fi -if [ ! ${TAG:0:3} = 'pbr' ]; then - echo Tag "$TAG" does not start with 'pbr' - aborting +if [ ! ${TAG:0:3} = 'pbk' ]; then + echo Tag "$TAG" does not start with 'pbk' - aborting exit 1 fi TAGVER=${TAG:3} @@ -23,14 +23,14 @@ case $TAGVER in *[!0-9]*) echo "$TAGVER is not a number" exit 1 esac -OFFSET=10000 +OFFSET=8000 TAGVER=`expr $TAGVER + 1` TAGVER_OFF=`expr $TAGVER + $OFFSET` -echo "Bumping version to pbr$TAGVER (nano: $TAGVER_OFF)" +echo "Bumping version to pbk$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 git commit -a -m "bumped internal version" -e -git tag "pbr$TAGVER"
\ No newline at end of file +git tag "pbk$TAGVER"
\ No newline at end of file |