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 ./$compiler $i $of of1=../../exe/$n.$dstext if [ ! -L $of1 ]; then dir=`pwd` cd ../../exe/ ln -s ../exed/$n.$dstext $n.$dstext cd $dir fi done