Skip to content

Commit ec931f9

Browse files
committed
xx
1 parent 719bb19 commit ec931f9

File tree

1 file changed

+4
-7
lines changed
  • .github/scripts/download-bundled

1 file changed

+4
-7
lines changed

.github/scripts/download-bundled/pcre2.sh

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -6,16 +6,13 @@ commit=b2bd4254b379b9d7dc9a3dda060a7e27009ccdff # 10.46 release
66

77
git clone --recurse-submodules --revision=$commit https://github.com/PCRE2Project/pcre2.git /tmp/php-src-bundled/pcre2
88

9-
(cd /tmp/php-src-bundled/pcre2 && ./autogen.sh)
10-
(cd /tmp/php-src-bundled/pcre2 && ./configure --enable-jit --enable-pcre2-16 --enable-pcre2-32 --enable-pcre2grep-libz --enable-pcre2grep-libbz2)
11-
129
rm -rf ext/pcre/pcre2lib
1310
cp -R /tmp/php-src-bundled/pcre2/src ext/pcre/pcre2lib
1411
cp -R /tmp/php-src-bundled/pcre2/deps/sljit/sljit_src ext/pcre/pcre2lib/sljit
1512

1613
cd ext/pcre/pcre2lib
1714

18-
# unneeded files
15+
# remove unneeded files
1916
rm -rf .deps
2017
rm pcre2.h.in
2118
rm pcre2_dftables.c
@@ -29,13 +26,13 @@ rm pcre2posix_test.c
2926
rm pcre2test.c
3027
rm stamp-h1
3128

32-
# renamed files
29+
# move renamed files
3330
mv config.h.generic config.h
3431
mv pcre2.h.generic pcre2.h
3532
mv pcre2_chartables.c.dist pcre2_chartables.c
3633

37-
# extra files
34+
# add extra files
3835
git restore config.h # based on config.h.generic but with many changes
3936

40-
# patched files
37+
# patch customized files
4138
git apply -v ../../../.github/scripts/download-bundled/pcre2-adjust-sljit-directory.patch

0 commit comments

Comments
 (0)