fixed
authorThierry Parmentelat <thierry.parmentelat@inria.fr>
Thu, 28 Feb 2013 09:27:09 +0000 (10:27 +0100)
committerThierry Parmentelat <thierry.parmentelat@inria.fr>
Thu, 28 Feb 2013 09:27:09 +0000 (10:27 +0100)
scripts/sfa-stable-debian.sh

index f6a01d5..e535978 100755 (executable)
@@ -6,7 +6,7 @@ stable=$1; shift
 stable=$(echo $stable | sed -e s,/,,g)
 stabledot=$(echo $stable | sed -e s,-,.,g)
 for dir in $(ls -d $stable/*[24]) ; do
-  base=$(echo $dir | sed -e s,/,,g -e s,--,,g -e s,sfa-,,g -e s,$stabledot,,g)
+  base=$(echo $dir | sed -e s,$stable,,g -e s,$stabledot,,g -e s,/sfa--,,g)
   stablelink="stable-$base"
   echo Linking $stablelink to $dir
   [ -h $stablelink ] && rm $stablelink