precompil.sh 209 Bytes
#!/bin/bash
FULL_PATH="$(realpath "${0}" | xargs dirname)"
currentPath=$(echo $FULL_PATH | sed 's_/_\\/_g')
cp $FULL_PATH/cain.in $FULL_PATH/cain.f90
sed -i  -e "s/_path_/${currentPath}/g" $FULL_PATH/cain.f90