summaryrefslogtreecommitdiff
path: root/_bump.sh
diff options
context:
space:
mode:
Diffstat (limited to '_bump.sh')
-rw-r--r--_bump.sh10
1 files changed, 5 insertions, 5 deletions
diff --git a/_bump.sh b/_bump.sh
index 12c17d3..98eca43 100644
--- a/_bump.sh
+++ b/_bump.sh
@@ -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