diff options
author | Stig Bakken <ssb@php.net> | 1999-11-10 15:26:39 +0000 |
---|---|---|
committer | Stig Bakken <ssb@php.net> | 1999-11-10 15:26:39 +0000 |
commit | 6e4114daf0c92cc0245fdcd4a35f9f2e6032b9fc (patch) | |
tree | cec51a7ece2c349d6c48083f92c2894ff589914c /makedist | |
parent | 044789447c3785276c4d2f8cc72557abac9e260e (diff) | |
download | php-git-6e4114daf0c92cc0245fdcd4a35f9f2e6032b9fc.tar.gz |
"import" libtool file preservation code from build.mk
Diffstat (limited to 'makedist')
-rwxr-xr-x | makedist | 18 |
1 files changed, 12 insertions, 6 deletions
@@ -32,6 +32,7 @@ ZENDROOT=:pserver:cvsread@cvs.zend.com:/repository PHPMOD=php4 ZENDMOD=libzend TSRMMOD=TSRM +LT_TARGETS='ltconfig ltmain.sh config.guess config.sub' if echo '\c' | grep -s c >/dev/null 2>&1 then @@ -98,9 +99,13 @@ echo "" # remove CVS stuff... find . \( \( -name CVS -type d \) -o -name .cvsignore \) -exec rm -rf {} \; -# hide away our own ltconfig/ltmain so they won't be overwritten -mv ltconfig ltconfig.php -mv ltmain.sh ltmain.sh.php +# hide away our own versions of libtool-generated files +for i in $LT_TARGETS; do + if test -f "$i"; then + mv $i $i.bak + cp $i.bak $i + fi +done # generate some files so people don't need bison, flex and autoconf # to install @@ -112,9 +117,10 @@ set -x echo "/* Dummy File */" > ext/bcmath/number.c echo "/* Dummy File */" > ext/bcmath/number.h -# now restore our own ltconfig/ltmain.sh files -mv ltconfig.php ltconfig -mv ltmain.sh.php ltmain.sh +# now restore our versions of libtool-generated files +for i in $LT_TARGETS; do + test -f "$i" && mv $i.bak $i +done cd $MY_OLDPWD $ECHO_N "makedist: making gzipped tar archive...$ECHO_C" |