stable=$(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,$stable,,g)
stable=$(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,$stable,,g)
echo Linking $stablelink to $dir
[ -h $stablelink ] && rm $stablelink
[ -e $stablelink ] && { echo "found not-a-link $base - ignored" ; continue ; }
echo Linking $stablelink to $dir
[ -h $stablelink ] && rm $stablelink
[ -e $stablelink ] && { echo "found not-a-link $base - ignored" ; continue ; }