X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=scripts%2Fsfa-stable-debian.sh;h=1d1a281f857e0672c3b88b0ae49d672c855989a7;hb=0f9d55936cdd62bb3b3d338ad3373a7de3b2b6a6;hp=a8d176fa8f4cced8894ed4dbf9b156565b74b895;hpb=58732ff527cf46cc4b8de5f7e87d8a698224e0b7;p=infrastructure.git diff --git a/scripts/sfa-stable-debian.sh b/scripts/sfa-stable-debian.sh index a8d176f..1d1a281 100755 --- a/scripts/sfa-stable-debian.sh +++ b/scripts/sfa-stable-debian.sh @@ -7,7 +7,8 @@ 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,$stable,,g -e s,$stabledot,,g -e s,/sfa--,,g) - stablelink="stable-$base" + version=$(echo $dir | cut -c1) + stablelink="stable-sfa$version-$base" echo Linking $stablelink to $dir [ -h $stablelink ] && rm $stablelink [ -e $stablelink ] && { echo "found not-a-link $base - ignored" ; continue ; }