1
0
mirror of https://github.com/php/php-src.git synced 2026-03-24 00:02:20 +01:00

Leave bundled generated files untouched

When building lexer and parser files leave bundled files untouched as
are tracked in the Git. *.orig files also don't need to be cleaned
anymore.
This commit is contained in:
Peter Kokot
2019-03-18 23:02:57 +01:00
parent 5b8a7412f4
commit abfab2148d
2 changed files with 0 additions and 14 deletions

View File

@@ -84,18 +84,5 @@ make RE2C="$RE2C" RE2C_FLAGS="$RE2C_FLAGS" srcdir=ext/phar builddir=ext/phar top
-f ext/phar/Makefile.frag \
ext/phar/phar_path_check.c
# Clean debug #line XY info from the bundled lexer files.
cleanup_files=" \
ext/date/lib/parse_date.c \
ext/date/lib/parse_iso_intervals.c \
"
for f in $cleanup_files; do
echo "Cleaning file $f"
cp $f $f.orig
grep -v '^#line ' $f.orig > $f
rm -f $f.orig
done
# Return to the original directory.
cd $original_path

View File

@@ -104,7 +104,6 @@ for i in $LT_TARGETS; do
done
# removing junk files
find . -name \*.orig -print0 | xargs -0 rm
rm -fr autom4te.cache/
# touching everything to be packaged