LGPL-2.1
1999-2021 The Coq Development Team,; Institut National de Recherche en Informatique et en Automatique (INRIA),; Centre National de la Recherche Scientifique (CNRS),; Microsoft corporation; and contributors
debian/copyright
Source reconstructed at patch state 0 of 1 — not the installed (fully patched) source.
1 Debian patch touch this file
| 1 |
#!/usr/bin/env bash |
| 2 |
|
| 3 |
export COQBIN=$BIN |
| 4 |
export PATH=$COQBIN:$PATH |
| 5 |
|
| 6 |
TMP=`mktemp -d` |
| 7 |
cd $TMP |
| 8 |
|
| 9 |
function assert_eq() { |
| 10 |
if [ "$1" != "$2" ]; then |
| 11 |
echo "rocq makefile generates destination $1 != $2" |
| 12 |
cd / |
| 13 |
rm -rf "$TMP" |
| 14 |
exit 1 |
| 15 |
fi |
| 16 |
} |
| 17 |
|
| 18 |
assert_eq `rocq makefile -destination-of src/Y/Z/Test.v -Q src X` "X//Y/Z" |
| 19 |
mkdir src |
| 20 |
assert_eq `rocq makefile -destination-of src/Y/Z/Test.v -Q src X` "X//Y/Z" |
| 21 |
mkdir -p src/Y/Z |
| 22 |
touch src/Y/Z/Test.v |
| 23 |
assert_eq `rocq makefile -destination-of src/Y/Z/Test.v -Q src X` "X//Y/Z" |
| 24 |
cd / |
| 25 |
rm -rf "$TMP" |
| 26 |
exit 0 |