File tree Expand file tree Collapse file tree 1 file changed +16
-1
lines changed
Expand file tree Collapse file tree 1 file changed +16
-1
lines changed Original file line number Diff line number Diff line change 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
66cd " $( CDPATH=' ' cd -- " $( dirname -- " $0 " ) /../../" && pwd -P) " || exit
@@ -21,3 +21,18 @@ chmod +x build/ltmain.sh
2121
2222new_libtool_serial=$( $grep -Po ' (?<=^# serial )(\d*)(?=.*)' build/libtool.m4)
2323echo " 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
You can’t perform that action at this time.
0 commit comments