summaryrefslogtreecommitdiffstats
path: root/libusb-1.0/_bump.sh
diff options
context:
space:
mode:
authorBenjamin Dobell <benjamin.dobell@glassechidna.com.au>2011-07-17 11:50:07 +0200
committerBenjamin Dobell <benjamin.dobell@glassechidna.com.au>2011-07-17 11:50:07 +0200
commit8cb7f6ee8f872938e257541c07d0e4b2ad0e3f35 (patch)
tree7b40d7e1a5c28b2e05b01cd9e348aabd60f2d19c /libusb-1.0/_bump.sh
parentAltered the user interface slightly to prevent clipping on certain OS. (diff)
downloadHeimdall-8cb7f6ee8f872938e257541c07d0e4b2ad0e3f35.tar
Heimdall-8cb7f6ee8f872938e257541c07d0e4b2ad0e3f35.tar.gz
Heimdall-8cb7f6ee8f872938e257541c07d0e4b2ad0e3f35.tar.bz2
Heimdall-8cb7f6ee8f872938e257541c07d0e4b2ad0e3f35.tar.lz
Heimdall-8cb7f6ee8f872938e257541c07d0e4b2ad0e3f35.tar.xz
Heimdall-8cb7f6ee8f872938e257541c07d0e4b2ad0e3f35.tar.zst
Heimdall-8cb7f6ee8f872938e257541c07d0e4b2ad0e3f35.zip
Diffstat (limited to '')
-rwxr-xr-xlibusb-1.0/_bump.sh36
1 files changed, 0 insertions, 36 deletions
diff --git a/libusb-1.0/_bump.sh b/libusb-1.0/_bump.sh
deleted file mode 100755
index 12c17d3..0000000
--- a/libusb-1.0/_bump.sh
+++ /dev/null
@@ -1,36 +0,0 @@
-#!/bin/sh
-# bump the version and update the git tree accordingly
-# !!!THIS SCRIPT IS FOR INTERNAL DEVELOPER USE ONLY!!!
-
-type -P sed &>/dev/null || { echo "sed command not found. Aborting." >&2; exit 1; }
-type -P git &>/dev/null || { echo "git command not found. Aborting." >&2; exit 1; }
-
-if [ ! -n "$1" ]; then
- TAG=$(git describe --tags --abbrev=0 2>/dev/null)
- if [ ! -n "$TAG" ]; then
- echo Unable to read tag - aborting.
- exit 1
- fi
-else
- TAG=$1
-fi
-if [ ! ${TAG:0:3} = 'pbr' ]; then
- echo Tag "$TAG" does not start with 'pbr' - aborting
- exit 1
-fi
-TAGVER=${TAG:3}
-case $TAGVER in *[!0-9]*)
- echo "$TAGVER is not a number"
- exit 1
-esac
-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
-git commit -a -m "bumped internal version" -e
-git tag "pbr$TAGVER" \ No newline at end of file