Skip to content

Commit

Permalink
"import" libtool file preservation code from build.mk
Browse files Browse the repository at this point in the history
  • Loading branch information
stigsb committed Nov 10, 1999
1 parent 0447894 commit 6e4114d
Showing 1 changed file with 12 additions and 6 deletions.
18 changes: 12 additions & 6 deletions makedist
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ ZENDROOT=:pserver:[email protected]:/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
Expand Down Expand Up @@ -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
Expand All @@ -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"
Expand Down

0 comments on commit 6e4114d

Please sign in to comment.