summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPete Batard <pbatard@gmail.com>2010-10-07 21:56:37 +0100
committerPete Batard <pbatard@gmail.com>2010-10-07 21:56:37 +0100
commit16aa45995babddb45bdd980c11eb5ebe1c49a85a (patch)
tree1c937ca9a3f1bb2fe94bc2f627de8eb7ca904851
parent46b1c51e94e41e845b620c314d455dd5dc76b5fb (diff)
downloadlibusb-16aa45995babddb45bdd980c11eb5ebe1c49a85a.tar.gz
[INTERNAL - NOT FOR RELEASE] minor script updates
-rw-r--r--bd.cmd3
-rw-r--r--bm.sh3
-rw-r--r--bump.sh9
3 files changed, 12 insertions, 3 deletions
diff --git a/bd.cmd b/bd.cmd
index 134f253..f7f1a50 100644
--- a/bd.cmd
+++ b/bd.cmd
@@ -1,4 +1,7 @@
@echo off
+rem produce the DDK binary files for snapshots
+rem !!!THIS SCRIPT IS FOR INTERNAL DEVELOPER USE ONLY!!!
+
if NOT x%DDK_TARGET_OS%==xWinXP goto usage
mkdir E:\dailies\%DATE%
diff --git a/bm.sh b/bm.sh
index 164260c..346d58e 100644
--- a/bm.sh
+++ b/bm.sh
@@ -1,4 +1,7 @@
#!/bin/sh
+# produce the MinGW binary files for snapshots
+# !!!THIS SCRIPT IS FOR INTERNAL DEVELOPER USE ONLY!!!
+
date=`date +%Y.%m.%d`
#
diff --git a/bump.sh b/bump.sh
index 4bf47ad..127a8ff 100644
--- a/bump.sh
+++ b/bump.sh
@@ -1,6 +1,6 @@
#!/bin/sh
-
-# This script bumps the version and updates the git tree accordingly, with tag
+# 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; }
@@ -19,8 +19,11 @@ if [ ! ${TAG:0:3} = 'pbr' ]; then
exit 1
fi
TAGVER=${TAG:3}
+case $TAGVER in *[!0-9]*)
+ echo "$TAGVER is not a number"
+ exit 1
+esac
OFFSET=10000
-# increment - ideally, we'd check that tagver is really numeric here
TAGVER=`expr $TAGVER + 1`
TAGVER_OFF=`expr $TAGVER + $OFFSET`
echo "Bumping version to pbr$TAGVER (nano: $TAGVER_OFF)"