mirror of
https://asciireactor.com/otho/cloudy-agn.git
synced 2025-01-19 02:15:06 +00:00
26 lines
629 B
Bash
Executable File
26 lines
629 B
Bash
Executable File
#!/bin/bash
|
|
|
|
script_dir=$( cd $(dirname $0) ; pwd -P |sed 's@^\(.*\)/scripts.*@\1/scripts@')
|
|
basedir=`pwd`
|
|
|
|
if [[ -x $script_dir/../bin/interpolate_fix]];
|
|
then
|
|
echo "Binary available. Proceeding."
|
|
else
|
|
echo "Binary unavailable. Exiting."
|
|
exit 9
|
|
fi
|
|
|
|
#for fortfile in $(echo fort.*);
|
|
for fortfile in $@
|
|
do
|
|
if [[ -e $(basename $fortfile) ]]
|
|
then
|
|
mkdir -p uninterpolated
|
|
mv $fortfile uninterpolated
|
|
echo $script_dir/../bin/interpolate_fix uninterpolated/$(basename $fortfile) $fortfile
|
|
else
|
|
echo $script_dir/../bin/interpolate_fix $fortfile $(basename $fortfile)
|
|
fi
|
|
exit 0
|