
CALCHEP=`pwd`
if(test $# -ne 1) then 
  echo " 
The program needs one parameter, the name of directory which 
should be created for user files
" 
exit 1   
fi

mkdir $1
if(test $? -ne 0) then
exit 2
fi

cd $1 

mkdir  results 
mkdir  models
mkdir  tmp 
cp $CALCHEP/models/*.mdl  models
echo ":
CALCHEP=$CALCHEP
export CALCHEP
"> calchep     
cat $CALCHEP/calchep  >> calchep
chmod 744 calchep    
cp $CALCHEP/calchep.ini .
