blob: 1e95ad63678c88aec75fd024218d979e10b37114 (
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
|
#!/bin/sh
: if this fails, just run all the .SH files by hand
. ./config.sh
(
cd x2p
rm -f config.sh
case "$d_symlink" in
*define*) ln -s ../config.sh . || ln ../config.sh .;;
*) ln ../config.sh . || ln -s ../config.sh .
esac
)
cp cppstdin x2p
echo " "
echo "Doing variable substitutions on .SH files..."
set x `awk '{print $1}' <MANIFEST | grep '\.SH'`
shift
case $# in
0) set x *.SH; shift;;
esac
if test ! -f $1; then
shift
fi
for file in $*; do
set X
shift
chmod +x $file
case "$file" in
*/*)
dir=`expr X$file : 'X\(.*\)/'`
file=`expr X$file : 'X.*/\(.*\)'`
(cd $dir && . ./$file)
;;
*)
. ./$file
;;
esac
done
if test -f config.h.SH; then
if test ! -f config.h; then
: oops, they left it out of MANIFEST, probably, so do it anyway.
. ./config.h.SH
fi
fi
exit 0
|