X-Git-Url: https://perl5.git.perl.org/perl5.git/blobdiff_plain/85e6fe838fb25b257a1b363debf8691c0992ef71:/ext/dbm/sdbm/Makefile.SH..a0d0e21ea6ea:/ext/SDBM_File/sdbm/Makefile.SH diff --git a/ext/dbm/sdbm/Makefile.SH b/ext/SDBM_File/sdbm/Makefile.SH similarity index 71% rename from ext/dbm/sdbm/Makefile.SH rename to ext/SDBM_File/sdbm/Makefile.SH index 9a19fa2..521c972 100644 --- a/ext/dbm/sdbm/Makefile.SH +++ b/ext/SDBM_File/sdbm/Makefile.SH @@ -1,3 +1,10 @@ +: This forces SH files to create target in same directory as SH file. +: This is so that make depend always knows where to find SH derivatives. + +case "$0" in +*/*) cd `expr X$0 : 'X\(.*\)/'` ;; +esac + if test -f config.sh; then TOP=.; elif test -f ../config.sh; then TOP=..; elif test -f ../../config.sh; then TOP=../..; @@ -6,19 +13,18 @@ elif test -f ../../../../config.sh; then TOP=../../../..; else echo "Can't find config.sh."; exit 1 fi + +: Find absolute path name for TOP. This is needed when we cd to TOP +: to run perl on autosplit. +oldpwd=`pwd`; cd $TOP; ABSTOP=`pwd`; cd $oldpwd + case $CONFIG in '') . $TOP/config.sh ;; esac -: This forces SH files to create target in same directory as SH file. -: This is so that make depend always knows where to find SH derivatives. -case "$0" in -*/*) cd `expr X$0 : 'X\(.*\)/'` ;; -esac - -echo "Extracting ext/dbm/sdbm/Makefile (with variable substitutions)" +echo "Extracting ext/SDBM_File/sdbm/Makefile (with variable substitutions)" : This section of the file will have variable substitutions done on it. : Move anything that needs config subs from !NO!SUBS! section to !GROK!THIS!. : Protect any dollar signs and backticks that you do not want interpreted @@ -33,16 +39,23 @@ $spitshell >Makefile <