aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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