aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIan Kelling <iank@fsf.org>2018-06-05 01:18:59 -0400
committerIan Kelling <iank@fsf.org>2018-06-05 01:18:59 -0400
commit1d63720bf95fb2c38f5fa695884eec9657642993 (patch)
tree40fdf2bc6b4f0007f3d7fd480d83844908519b59
parent16ce915aac7add2650aa539a3f1428da358ee337 (diff)
make doall more robust
-rwxr-xr-xdoall.sh3
1 files changed, 3 insertions, 0 deletions
diff --git a/doall.sh b/doall.sh
index 3ededc4..d5b729d 100755
--- a/doall.sh
+++ b/doall.sh
@@ -4,6 +4,9 @@ set -eE -o pipefail
trap 'echo "$0:$LINENO:error: \"$BASH_COMMAND\" returned $?" >&2' ERR
set -x
+x="$(readlink -f -- "$BASH_SOURCE")"; cd ${x%/*} # directory of this file
+
+
rm distfiles output *.log *.h5 -rf
mkdir distfiles