perl 4.0 patch 12: 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
6echo " "
7echo "Doing variable substitutions on .SH files..."
8set x `awk '{print $1}' <MANIFEST | grep '\.SH'`
9shift
10case $# in
110) set x *.SH; shift;;
12esac
13if test ! -f $1; then
14 shift
15fi
16for file in $*; do
17 set X
18 shift
19 chmod +x $file
20 case "$file" in
21 */*)
22 dir=`expr X$file : 'X\(.*\)/'`
23 file=`expr X$file : 'X.*/\(.*\)'`
24 (cd $dir && . $file)
25 ;;
26 *)
27 . $file
28 ;;
29 esac
30done
31if test -f config.h.SH; then
32 if test ! -f config.h; then
33 : oops, they left it out of MANIFEST, probably, so do it anyway.
34 . config.h.SH
35 fi
36fi