This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
Merge branch 'master' of perl5.git.perl.org:/metaconfig
[metaconfig.git] / U.check / dummy.SH
1 case $CONFIG in
2 '')
3         if test -f config.sh; then TOP=.;
4         elif test -f ../config.sh; then TOP=..;
5         elif test -f ../../config.sh; then TOP=../..;
6         elif test -f ../../../config.sh; then TOP=../../..;
7         elif test -f ../../../../config.sh; then TOP=../../../..;
8         else
9                 echo "Can't find config.sh."; exit 1
10         fi
11         . $TOP/config.sh
12         ;;
13 esac
14 : This forces SH files to create target in same directory as SH file.
15 : This is so that make depend always knows where to find SH derivatives.
16 case "$0" in
17 */*) cd `expr X$0 : 'X\(.*\)/'` ;;
18 esac
19 echo "Extracting dummy (with variable substitutions)"
20 $spitshell >dummy <<!GROK!THIS!
21 $startsh
22
23 cat <<EOM
24 Your results are:
25
26 freetype=$freetype
27 malloctype=$malloctype
28
29 EOM
30
31 !GROK!THIS!
32 chmod 755 dummy