perl 4.0 patch 14: patch #11, continued
[p5sagit/p5-mst-13.2.git] / doSH
CommitLineData
6e21c824 1#!/bin/sh
2
3: if this fails, just run all the .SH files by hand
4. ./config.sh
5
db4e6270 6rm -f x2p/config.sh
7
6e21c824 8echo " "
9echo "Doing variable substitutions on .SH files..."
10set x `awk '{print $1}' <MANIFEST | grep '\.SH'`
11shift
12case $# in
130) set x *.SH; shift;;
14esac
15if test ! -f $1; then
16 shift
17fi
18for file in $*; do
19 set X
20 shift
21 chmod +x $file
22 case "$file" in
23 */*)
24 dir=`expr X$file : 'X\(.*\)/'`
25 file=`expr X$file : 'X.*/\(.*\)'`
db4e6270 26 (cd $dir && . ./$file)
6e21c824 27 ;;
28 *)
db4e6270 29 . ./$file
6e21c824 30 ;;
31 esac
32done
33if test -f config.h.SH; then
34 if test ! -f config.h; then
35 : oops, they left it out of MANIFEST, probably, so do it anyway.
db4e6270 36 . ./config.h.SH
6e21c824 37 fi
38fi
db4e6270 39exit 0