diff --git a/linux/projects/compile b/linux/projects/compile index e50b9fe57..59d6ad95e 100755 --- a/linux/projects/compile +++ b/linux/projects/compile @@ -13,10 +13,13 @@ for i in $2*.$srcext do n=`basename $i .$srcext` of=../../exed/$n.$dstext -of1=../../exe/$n.$dstext ./$compiler $i $of +of1=../../exe/$n.$dstext if [ ! -L $of1 ]; then - ln -s $of $of1 + dir=`pwd` + cd ../../exe/ + ln -s ../exed/$n.$dstext $n.$dstext + cd $dir fi done