Mercurial > hg > sonic-visualiser
diff deploy/clean-build-and-package @ 2396:ab09e05b0d35
Restore this check
author | Chris Cannam |
---|---|
date | Tue, 22 Oct 2019 17:13:50 +0100 |
parents | ab2d0fe8f0b7 |
children | 7c09d776d579 |
line wrap: on
line diff
--- a/deploy/clean-build-and-package Tue Oct 22 16:32:28 2019 +0100 +++ b/deploy/clean-build-and-package Tue Oct 22 17:13:50 2019 +0100 @@ -4,10 +4,10 @@ current=$(hg id | awk '{ print $1; }') -#case "$current" in -# *+) echo "ERROR: Current working copy has been modified - not proceeding"; exit 2;; -# *);; -#esac +case "$current" in + *+) echo "ERROR: Current working copy has been modified - not proceeding";exit 2;; + *);; +esac version=`perl -p -e 's/^[^"]*"([^"]*)".*$/$1/' version.h`