|
|
|
@ -106,7 +106,8 @@ else
|
|
|
|
|
exit 1
|
|
|
|
|
fi
|
|
|
|
|
else
|
|
|
|
|
# Else, fetch the jobname from the .Rnw filename by stripping file extension
|
|
|
|
|
# There is exactly one *.Rnw file is current directory
|
|
|
|
|
# Fetch the jobname from the .Rnw filename by stripping off the file extension
|
|
|
|
|
Rnwfilename=$(ls -1 $Rnwfiles)
|
|
|
|
|
jobname=${Rnwfilename%.*}
|
|
|
|
|
fi
|
|
|
|
@ -132,14 +133,16 @@ else
|
|
|
|
|
fi
|
|
|
|
|
echo "Terminating..."
|
|
|
|
|
|
|
|
|
|
mv $jobname-*.pdf tikz-pdfs
|
|
|
|
|
mv *.aux logs
|
|
|
|
|
mv *.log logs
|
|
|
|
|
mv *.out logs
|
|
|
|
|
#mv $jobname-*.pdf tikz-pdfs
|
|
|
|
|
#mv *.aux logs
|
|
|
|
|
#mv *.log logs
|
|
|
|
|
#mv *.out logs
|
|
|
|
|
|
|
|
|
|
exit 1
|
|
|
|
|
fi
|
|
|
|
|
|
|
|
|
|
## Here is the wild land of more than one *.Rnw file in current directory
|
|
|
|
|
|
|
|
|
|
echo "<cheRTeX> This script can be run with one argument is process mode,"
|
|
|
|
|
echo "<cheRTeX> or with zero arguments in post-processing mode."
|
|
|
|
|
echo "<cheRTeX> Terminating..."
|
|
|
|
|