prepare for release candidate tags:
[ardour.git] / tools / x-win / package.sh
index 023c5ca6458612170d23cb7a89bbd0c361ad6b16..cc1966ca157e94df3360511f927496fd17747096 100755 (executable)
@@ -70,7 +70,7 @@ set -e
 
 ARDOURVERSION=$(git describe | sed 's/-g.*$//')
 ARDOURDATE=$(date -R)
-BINVERSION=$(git describe | sed 's/-g.*$//' | sed 's/-/./')
+BINVERSION=$(git describe | sed 's/-g.*$//;s/\-rc\([^-]*\)-/-rc\1./;s/-/./;s/-.*$//')
 if ! test -f build/gtk2_ardour/ardour-${BINVERSION}.exe; then
        echo "*** Please compile ardour ${ARDOURVERSION} first."
        exit 1