File: init.sh

package info (click to toggle)
coq 8.16.1%2Bdfsg-1
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 40,596 kB
  • sloc: ml: 219,376; sh: 3,545; python: 3,231; ansic: 2,529; makefile: 767; lisp: 279; javascript: 63; xml: 24; sed: 2
file content (27 lines) | stat: -rwxr-xr-x 608 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
#!/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 || exit 1
mkdir -p src
mkdir -p theories/sub

cp_file() {
  local _TARGET=$1
  cp ../../template/$_TARGET $_TARGET
  chmod u+w $_TARGET
}

# We chmod +w as to fix the case where the sources are read-only, as
# for example when using Dune's cache.
cp_file theories/sub/testsub.v
cp_file theories/test.v
cp_file src/test.mlg
cp_file src/test_aux.mli
cp_file src/test.mli
cp_file src/test_plugin.mlpack
cp_file src/test_aux.ml
cp_file src/META.coq-test-suite