forked from php/php-src
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* PHP-7.4: Enhance makedist script
- Loading branch information
Showing
7 changed files
with
180 additions
and
145 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -10,7 +10,20 @@ $(srcdir)/zend_language_scanner.c: $(srcdir)/zend_language_scanner.re | |
|
||
$(srcdir)/zend_language_parser.h: $(srcdir)/zend_language_parser.c | ||
$(srcdir)/zend_language_parser.c: $(srcdir)/zend_language_parser.y | ||
# Tweak zendparse to be exported through ZEND_API. This has to be revisited once | ||
# bison supports foreign skeletons and that bison version is used. Read | ||
# https://git.savannah.gnu.org/cgit/bison.git/tree/data/README.md for more. | ||
@$(YACC) -p zend -v -d $(srcdir)/zend_language_parser.y -o $@ | ||
@$(SED) -e 's,^int zendparse\(.*\),ZEND_API int zendparse\1,g' < $@ \ | ||
> [email protected] && \ | ||
mv [email protected] $@ | ||
@$(SED) -e 's,^int zendparse\(.*\),ZEND_API int zendparse\1,g' < $(srcdir)/zend_language_parser.h \ | ||
> $(srcdir)/zend_language_parser.h.tmp && \ | ||
mv $(srcdir)/zend_language_parser.h.tmp $(srcdir)/zend_language_parser.h | ||
@$(SED) -e 's,^#ifndef YYTOKENTYPE,#include "zend.h"\ | ||
#ifndef YYTOKENTYPE,g' < $(srcdir)/zend_language_parser.h \ | ||
> $(srcdir)/zend_language_parser.h.tmp && \ | ||
mv $(srcdir)/zend_language_parser.h.tmp $(srcdir)/zend_language_parser.h | ||
|
||
$(srcdir)/zend_ini_parser.h: $(srcdir)/zend_ini_parser.c | ||
$(srcdir)/zend_ini_parser.c: $(srcdir)/zend_ini_parser.y | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -18,7 +18,6 @@ | |
# Makefile to generate build tools | ||
# | ||
|
||
subdirs = Zend TSRM | ||
config_h_in = main/php_config.h.in | ||
PHP_AUTOCONF = autoconf | ||
PHP_AUTOHEADER = autoheader | ||
|
@@ -41,28 +40,3 @@ $(config_h_in): configure | |
@rm -f $@ | ||
@$(PHP_AUTOHEADER) $(PHP_AUTOCONF_FLAGS) | ||
@sed -e 's/^#undef PACKAGE_[^ ]*/\/\* & \*\//g' < $@ > [email protected] && mv [email protected] $@ | ||
|
||
snapshot: | ||
distname='$(DISTNAME)'; \ | ||
if test -z "$$distname"; then \ | ||
distname='php7-snapshot'; \ | ||
fi; \ | ||
myname=`basename \`pwd\`` ; \ | ||
cd .. && cp -rp $$myname $$distname; \ | ||
cd $$distname; \ | ||
rm -f $(subdirs) 2>/dev/null || true; \ | ||
for i in $(subdirs); do \ | ||
test -d $$i || (test -d ../$$i && cp -rp ../$$i $$i); \ | ||
done; \ | ||
find . -type l -exec rm {} \; ; \ | ||
$(MAKE) -f build/build.mk; \ | ||
cd ..; \ | ||
tar cf $$distname.tar $$distname; \ | ||
rm -rf $$distname $$distname.tar.*; \ | ||
bzip2 -9 $$distname.tar; \ | ||
md5sum $$distname.tar.bz2; \ | ||
sync; sleep 2; \ | ||
md5sum $$distname.tar.bz2; \ | ||
bzip2 -t $$distname.tar.bz2 | ||
|
||
.PHONY: snapshot |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.