compiler=$1 dstext=$1 srcext=$dstext if [ $dstext == msk2 ]; then dstext=msk fi if [ $dstext == msk ]; then srcext=uml fi for i in $2*.$srcext do n=`basename $i .$srcext` of=../../exed/$n.$dstext of1=../../exe/$n.$dstext ./$compiler $i $of if [ ! -L $of1 ]; then ln -s $of $of1 fi done