chiark / gitweb /
changelog: start 0.6.8
[secnet.git] / comprehensive-test
index d8cf07d20ccebaa3366cd0c87d230669f028dc6d..919c690fbb6c5510dc3c5fead70b8d66fa6d9f6d 100755 (executable)
@@ -1,4 +1,9 @@
 #!/bin/bash
+# This file is part of secnet.
+# See LICENCE and this file CREDITS for full list of copyright holders.
+# SPDX-License-Identifier: GPL-3.0-or-later
+# There is NO WARRANTY.
+
 set -e
 set -o pipefail
 
@@ -15,6 +20,19 @@ for arg in "$@"; do
     esac
 done
 
+case "${OLD_SECNET_DIR-:?must be set, perhaps to the empty string}" in
+    ''|/*)
+        ;;
+    ../*)
+       OLD_SECNET_DIR="${PWD%/*}/${OLD_SECNET_DIR#../}"
+       echo >&2 "x OLD_SECNET_DIR=$OLD_SECNET_DIR"
+       ;;
+    *)
+       echo >&2 "relative non-.. OLD_SECNET_DIR $OLD_SECNET_DIR !";
+       exit 1
+       ;;
+esac
+
 x () { echo >&2 "x $*"; "$@"; }
 
 srcdir=$(pwd)