bootstrap.ci: flexibilize option -R

When -R is given, accept indication of -rc resp. ~rc version
strings in git describe's output.
This commit is contained in:
Peter Marschall 2018-05-13 13:20:01 +02:00 committed by Frank Morgner
parent a6b596d09a
commit e4cab31763
1 changed files with 1 additions and 1 deletions

View File

@ -39,7 +39,7 @@ do
REVISION=$OPTARG
;;
R)
REVISION=`git describe | perl -ne 'print $1 if /^[\.0-9]*-([0-9]*)-g[a-z0-9]*$/;'`
REVISION=`git describe | perl -ne 'print $1 if /^[\.0-9]*([-~]rc[0-9]+)?-([0-9]*)-g[a-z0-9]*$/;'`
;;
?)
usage