aboutsummaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
authorAndreas Guldstrand <andreas.guldstrand@gmail.com>2016-03-09 15:21:59 +0100
committerAndreas Guldstrand <andreas.guldstrand@gmail.com>2016-03-09 15:21:59 +0100
commitf4328df6a85d05a058c9ca6d17e831d7caa7a743 (patch)
tree47406c9a30587ac49b0a98773a504565ae36b0dd /tools
parent2a071a151a82a66d9e6e7a2a787c10fa58eb36de (diff)
downloadsbotools-f4328df6a85d05a058c9ca6d17e831d7caa7a743.tar.xz
Allow update tools to use git revisions for version strings
Diffstat (limited to 'tools')
-rwxr-xr-xtools/update_man_pages.sh2
-rwxr-xr-xtools/update_versions.sh2
2 files changed, 2 insertions, 2 deletions
diff --git a/tools/update_man_pages.sh b/tools/update_man_pages.sh
index 5a7115d..9932875 100755
--- a/tools/update_man_pages.sh
+++ b/tools/update_man_pages.sh
@@ -23,7 +23,7 @@ if [[ "$1" == "-g" ]]; then
shift
fi
-version=$(grep '^our $VERSION' SBO-Lib/lib/SBO/Lib.pm | grep -Eo '[0-9]+(\.[0-9RC]+){0,1}')
+version=$(grep '^our $VERSION' SBO-Lib/lib/SBO/Lib.pm | grep -Eo '[0-9]+(\.[0-9RC@gita-e]+){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 b17bba6..c5ff5f4 100755
--- a/tools/update_versions.sh
+++ b/tools/update_versions.sh
@@ -34,7 +34,7 @@ update="
slackbuild/sbotools/sbotools.info
"
-old_version=$(grep '^our $VERSION' SBO-Lib/lib/SBO/Lib.pm | grep -Eo '[0-9]+(\.[0-9RC]+){0,1}')
+old_version=$(grep '^our $VERSION' SBO-Lib/lib/SBO/Lib.pm | grep -Eo '[0-9]+(\.[0-9RC@gita-e]+){0,1}')
tmpfile=$(mktemp /tmp/XXXXXXXXXX)