diff options
author | Andreas Guldstrand <andreas.guldstrand@gmail.com> | 2015-12-04 13:49:01 +0100 |
---|---|---|
committer | Andreas Guldstrand <andreas.guldstrand@gmail.com> | 2015-12-04 13:49:01 +0100 |
commit | 7a9427748e17db29fb1bd4d2703d0d964f64f379 (patch) | |
tree | b8c2c82c44e3a61b2b7c42a90aa1c6a7cb255a32 /tools | |
parent | af1f5829a2b8181fc005acdafaa4cc52e5ae320b (diff) | |
download | sbotools-7a9427748e17db29fb1bd4d2703d0d964f64f379.tar.xz |
Update version handling in tools/
Diffstat (limited to 'tools')
-rwxr-xr-x | tools/htmlgen.sh | 2 | ||||
-rwxr-xr-x | tools/package_up.sh | 2 | ||||
-rwxr-xr-x | tools/update_man_pages.sh | 14 | ||||
-rwxr-xr-x | tools/update_versions.sh | 3 |
4 files changed, 10 insertions, 11 deletions
diff --git a/tools/htmlgen.sh b/tools/htmlgen.sh index fd4b101..b623928 100755 --- a/tools/htmlgen.sh +++ b/tools/htmlgen.sh @@ -7,7 +7,7 @@ fi DESTDIR=$1 PACKAGE="sbotools" -VERSION=$(grep '^our $VERSION' SBO-Lib/lib/SBO/Lib.pm | grep -Eo '[0-9]+(\.[0-9]+){0,1}') +VERSION=$(grep '^our $VERSION' SBO-Lib/lib/SBO/Lib.pm | grep -Eo '[0-9]+(\.[0-9RC]+){0,1}') SBO_DIR=`pwd` diff --git a/tools/package_up.sh b/tools/package_up.sh index 9765e6c..953b602 100755 --- a/tools/package_up.sh +++ b/tools/package_up.sh @@ -2,7 +2,7 @@ DOWNLOADDIR="$1" PACKAGE="sbotools" -VERSION=$(grep '^our $VERSION' SBO-Lib/lib/SBO/Lib.pm | grep -Eo '[0-9]+(\.[0-9]+){0,1}') +VERSION=$(grep '^our $VERSION' SBO-Lib/lib/SBO/Lib.pm | grep -Eo '[0-9]+(\.[0-9RC]+){0,1}') FILENAME=$PACKAGE-$VERSION.tar.gz echo "Making package for $PACKAGE-$VERSION." \ diff --git a/tools/update_man_pages.sh b/tools/update_man_pages.sh index fe96125..960e151 100755 --- a/tools/update_man_pages.sh +++ b/tools/update_man_pages.sh @@ -1,11 +1,15 @@ #!/bin/sh usage_exit() { - echo "Usage: $(basename $0) (-d) (-g) version" + echo "Usage: $(basename $0) (-d) (-g)" exit 1 } -if [[ "$1" == "" ]]; then +if [[ "$1" == "-h" ]]; then + usage_exit +fi + +if [[ "$1" == "-?" ]]; then usage_exit fi @@ -19,11 +23,7 @@ if [[ "$1" == "-g" ]]; then shift fi -if [[ "$1" == "" ]]; then - usage_exit -fi - -version="$1" +VERSION=$(grep '^our $VERSION' SBO-Lib/lib/SBO/Lib.pm | grep -Eo '[0-9]+(\.[0-9RC]+){0,1}') if ! [[ -d "./man1" ]]; then echo "you do not seem to be at the right place to run this." diff --git a/tools/update_versions.sh b/tools/update_versions.sh index 50e9464..9c974f6 100755 --- a/tools/update_versions.sh +++ b/tools/update_versions.sh @@ -26,8 +26,7 @@ update=" slackbuild/sbotools/sbotools.info " -old_version=$(grep '^our $VERSION' SBO-Lib/lib/SBO/Lib.pm \ - | grep -Eo '[0-9]+(\.[0-9]+){0,1}') +old_version=$(grep '^our $VERSION' SBO-Lib/lib/SBO/Lib.pm | grep -Eo '[0-9]+(\.[0-9RC]+){0,1}') tmpfile=$(mktemp /tmp/XXXXXXXXXX) |