X-Git-Url: https://git.decadent.org.uk/gitweb/?a=blobdiff_plain;f=scripts%2Fdebian%2Fbyhand-di;h=99cb313152555496227c56f751cad15f8e66d9a8;hb=162d4038c842d7df4dbf1f95fe9bd05e0c8580e8;hp=ab01536d7adf4f165c2c1fabd7d30b297ec1e9db;hpb=12de1d813df0d66d6c8034d2e5c6b7b58777b65a;p=dak.git diff --git a/scripts/debian/byhand-di b/scripts/debian/byhand-di index ab01536d..99cb3131 100755 --- a/scripts/debian/byhand-di +++ b/scripts/debian/byhand-di @@ -1,4 +1,7 @@ -#!/bin/sh -ue +#!/bin/sh + +set -u +set -e if [ $# -lt 4 ]; then echo "Usage: $0 filename version arch changes_file" @@ -16,8 +19,8 @@ error() { } # Check validity of version number -# Expected are: YYYYMMDD, YYYYMMDD.x, YYYYMMDDx and the +b[0-9] on the end -if ! echo "$VERSION" | grep -Eq "^[0-9]{8}(|(\.|[a-z]+)[0-9]+)(\+b[0-9])?$"; then +# Expected are: YYYYMMDD, YYYYMMDD.x, YYYYMMDDx, YYYYMMDD+x and the +b[0-9] on the end +if ! echo "$VERSION" | grep -Eq "^[0-9]{8}(|(\.|\+?[a-z]+)[0-9]+)(\+b[0-9])?$"; then error "Invalid version: '$VERSION'" fi