Debian Codegraph @

test-suite/coq-makefile/template/init.sh

raw symbols SCIP
1 #!/bin/sh
2 . ../template/path-init.sh
3
4 rm -rf _test
5 mkdir _test
6 find . -maxdepth 1 -not -name . -not -name _test -exec cp -r '{}' -t _test ';'
7
8 cd _test || exit 1
9 mkdir -p src
10 mkdir -p theories/sub
11
12 cp_file() {
13 local _TARGET=$1
14 cp ../../template/$_TARGET $_TARGET
15 chmod u+w $_TARGET
16 }
17
18 # We chmod +w as to fix the case where the sources are read-only, as
19 # for example when using Dune's cache.
20 cp_file theories/sub/testsub.v
21 cp_file theories/test.v
22 cp_file src/test.mlg
23 cp_file src/test_aux.mli
24 cp_file src/test.mli
25 cp_file src/test_plugin.mlpack
26 cp_file src/test_aux.ml
27 cp_file src/META.coq-test-suite