mirror of
https://github.com/php/php-src.git
synced 2024-12-17 22:09:12 +08:00
8d3f8ca12a
The $Id$ keywords were used in Subversion where they can be substituted with filename, last revision number change, last changed date, and last user who changed it. In Git this functionality is different and can be done with Git attribute ident. These need to be defined manually for each file in the .gitattributes file and are afterwards replaced with 40-character hexadecimal blob object name which is based only on the particular file contents. This patch simplifies handling of $Id$ keywords by removing them since they are not used anymore.
47 lines
765 B
Bash
Executable File
47 lines
765 B
Bash
Executable File
#!/bin/sh
|
|
|
|
eval `grep '^PHP_EXTRA_VERSION=' configure.ac`
|
|
case "$PHP_EXTRA_VERSION" in
|
|
*-dev)
|
|
dev=1
|
|
;;
|
|
*)
|
|
dev=0
|
|
;;
|
|
esac
|
|
|
|
devok=0
|
|
debug=no
|
|
|
|
while test $# -gt 0; do
|
|
if test "$1" = "--force"; then
|
|
devok=1
|
|
echo "Forcing buildconf"
|
|
fi
|
|
|
|
if test "$1" = "--debug"; then
|
|
debug=yes
|
|
fi
|
|
|
|
shift
|
|
done
|
|
|
|
if test "$dev" = "0" -a "$devok" = "0"; then
|
|
echo "You should not run buildconf in a release package."
|
|
echo "use buildconf --force to override this check."
|
|
exit 1
|
|
fi
|
|
|
|
if test "$devok" = "1"; then
|
|
echo "Removing configure caches"
|
|
rm -rf autom4te.cache config.cache
|
|
fi
|
|
|
|
rm -f generated_lists
|
|
|
|
if test "$debug" = "yes"; then
|
|
${MAKE:-make} -s -f build/build.mk SUPPRESS_WARNINGS=""
|
|
else
|
|
${MAKE:-make} -s -f build/build.mk
|
|
fi
|