diff options
author | zapashcanon <leo@ndrs.fr> | 2018-02-21 22:42:10 +0100 |
---|---|---|
committer | zapashcanon <leo@ndrs.fr> | 2018-04-05 22:05:43 +0100 |
commit | 250502b01340ec6bedace85c6a2d4a4e57a107cf (patch) | |
tree | 256fd7d0e38d2bdc24350eb18e61b0fb73e44215 /test-suite/coq-makefile/template | |
parent | b7938d0a51cdef8076bf5e1a58907b845a3fcc3d (diff) |
Improve shell scripts
Diffstat (limited to 'test-suite/coq-makefile/template')
-rwxr-xr-x | test-suite/coq-makefile/template/init.sh | 3 | ||||
-rwxr-xr-x | test-suite/coq-makefile/template/path-init.sh | 1 |
2 files changed, 3 insertions, 1 deletions
diff --git a/test-suite/coq-makefile/template/init.sh b/test-suite/coq-makefile/template/init.sh index e19d168cf..2e066d30d 100755 --- a/test-suite/coq-makefile/template/init.sh +++ b/test-suite/coq-makefile/template/init.sh @@ -1,10 +1,11 @@ +#!/bin/sh . ../template/path-init.sh rm -rf _test mkdir _test find . -maxdepth 1 -not -name . -not -name _test -exec cp -r '{}' -t _test ';' -cd _test +cd _test || exit 1 mkdir -p src mkdir -p theories/sub diff --git a/test-suite/coq-makefile/template/path-init.sh b/test-suite/coq-makefile/template/path-init.sh index dd19ab2b1..c79b56652 100755 --- a/test-suite/coq-makefile/template/path-init.sh +++ b/test-suite/coq-makefile/template/path-init.sh @@ -1,3 +1,4 @@ +#!/bin/sh set -e set -o pipefail |