Skip to content

Commit 325b36a

Browse files
committed
Add autoconf bits back to script per feedback in GH-21098
1 parent a553e84 commit 325b36a

File tree

1 file changed

+16
-1
lines changed

1 file changed

+16
-1
lines changed
Lines changed: 16 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
#!/bin/sh
22
#
3-
# Update the PHP libtool bits.
3+
# Update the PHP autotools (autoconf, libtool) bits.
44

55
# Go to project root directory
66
cd "$(CDPATH='' cd -- "$(dirname -- "$0")/../../" && pwd -P)" || exit
@@ -21,3 +21,18 @@ chmod +x build/ltmain.sh
2121

2222
new_libtool_serial=$($grep -Po '(?<=^# serial )(\d*)(?=.*)' build/libtool.m4)
2323
echo "New libtool serial: $new_libtool_serial"
24+
25+
# For config.*, GNU recommendation for updates is to download from Savannah
26+
# See: https://www.gnu.org/software/gettext/manual/html_node/config_002eguess.html
27+
28+
update_file() {
29+
old_ts=$("build/$1" -t)
30+
echo "Old $1 timestamp: $old_ts"
31+
url="https://git.savannah.gnu.org/gitweb/?p=config.git;a=blob_plain;f=$1;hb=HEAD"
32+
wget -O "build/$1" "$url"
33+
new_ts=$("build/$1" -t)
34+
echo "New $1 timestamp: $new_ts"
35+
}
36+
37+
update_file config.guess
38+
update_file config.sub

0 commit comments

Comments
 (0)