nsbin/cleanup-latex
Nico Schottelius f9a941d7e9 fixup posix problems
Signed-off-by: Nico Schottelius <nico@kr.ethz.ch>
2011-04-30 21:17:16 +02:00

20 lines
277 B
Bash
Executable file

#!/bin/sh
# Steven Armstrong
# Nico Schottelius
#
set -e
DIR="$1"
[ -z "${DIR}" ] && DIR="${PWD}"
DIR="${DIR%/}"
if ! [ -d "${DIR}" ]; then
echo "cannot access ${DIR}: No such file or directory" >&2
exit 1
fi
cd "${DIR}"
rm -f *.aux *.nav *.out *.toc *.snm *.log *.vrb