blob: 9dd75afbca44be0722c4e0f05e75036b6db7e76f (
plain)
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
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
|
# HG changeset patch
# User Markus Mützel <markus.muetzel@gmx.de>
# Date 1649850892 -7200
# Node ID 3c3abe6dbe5803ac3faa0d3c81f07a8ae28933ae
# Parent f67d2ce5d6d42d94220d24c95698eef6815ac947
Don't leak build directories in installed directories (bug #62295).
* test/mk-bc-overloads-tst.sh: Remove absolute output directory from file paths.
Use correct name when referencing itself.
diff --git a/test/mk-bc-overloads-tst.sh b/test/mk-bc-overloads-tst.sh
--- a/test/mk-bc-overloads-tst.sh
+++ b/test/mk-bc-overloads-tst.sh
@@ -48,16 +48,16 @@
shift
case "$1" in
--list-files)
- echo $output_dir/tbcover.m
- echo $output_dir/bc-overloads.tst
+ echo tbcover.m
+ echo bc-overloads.tst
for class in $CLASSES; do
- echo $output_dir/@$class/tbcover.m
+ echo @$class/tbcover.m
done
exit
;;
--list-dirs)
for class in $CLASSES; do
- echo $output_dir/@$class
+ echo @$class
done
exit
;;
@@ -70,16 +70,16 @@
;;
esac
else
- echo "usage: build-bc-overload-tests.sh output_dir option" 1>&2
+ echo "usage: mk-bc-overload-tst.sh output_dir option" 1>&2
exit 1
fi
for class in $CLASSES; do
- DIR="$output_dir/@$class"
+ DIR="@$class"
test -d $DIR || mkdir $DIR || { echo "error: could not create $DIR"; exit; }
cat > $DIR/tbcover.m << EOF
% !!! DO NOT EDIT !!!
-% generated automatically by build-bc-overload-tests.sh
+% generated automatically by mk-bc-overload-tst.sh
function s = tbcover (x, y)
s = '$class';
EOF
@@ -87,7 +87,7 @@
cat > $output_dir/tbcover.m << EOF
% !!! DO NOT EDIT !!!
-% generated automatically by build-bc-overload-tests.sh
+% generated automatically by mk-bc-overload-tst.sh
function s = tbcover (x, y)
s = 'none';
EOF
|