File tree Expand file tree Collapse file tree 4 files changed +27
-10
lines changed
extensions/libraries/timezone/tz Expand file tree Collapse file tree 4 files changed +27
-10
lines changed Original file line number Diff line number Diff line change @@ -113,6 +113,7 @@ addons:
113113 # Packages needed for building LiveCode
114114 apt :
115115 packages :
116+ - gawk
116117 - libx11-dev
117118 - libxext-dev
118119 - libxrender-dev
Original file line number Diff line number Diff line change @@ -55,6 +55,7 @@ The following additional packages should be installed before building:
5555* build-essential
5656* automake
5757* libtool
58+ * gawk
5859* git
5960* curl
6061* flex
@@ -77,7 +78,7 @@ The following additional packages should be installed before building:
7778
7879Use
7980
80- sudo apt-get install build-essential automake libtool git curl flex &&
81+ sudo apt-get install build-essential automake libtool gawk git curl flex &&
8182 sudo apt-get install bison libx11-dev libxext-dev libxrender-dev libxft-dev &&
8283 sudo apt-get install libxinerama-dev libxv-dev libxcursor-dev libfreetype6-dev &&
8384 sudo apt-get install libpopt-dev libesd0-dev liblcms2-dev pkg-config libgtk2.0-dev zip
Original file line number Diff line number Diff line change 150150 },
151151 },
152152 ],
153+ [
154+ 'OS == "linux"' ,
155+ {
156+ 'variables' :
157+ {
158+ 'awk' : 'gawk' ,
159+ },
160+ },
161+ {
162+ 'variables' :
163+ {
164+ 'awk' : 'awk' ,
165+ },
166+ },
167+ ]
153168 ],
154169
155170 'action' :
156171 [
157172 '<@(build_command)' ,
158173 '<(INTERMEDIATE_DIR)' ,
174+ '<(awk)' ,
159175 'ziguard.awk' ,
160176 'zishrink.awk' ,
161177 'version' ,
Original file line number Diff line number Diff line change 22
33# Utility script called by the build system to build tzdata.zi
44
5- set -x
6-
7- # Arguments 4 and above are the list of zone data files
5+ # Arguments 5 and above are the list of zone data files
86readonly output_dir=$1
9- readonly ziguard=$2
10- readonly zishrink=$3
11- readonly version_file=$4
12- shift 4
7+ readonly awk_bin=$2
8+ readonly ziguard=$3
9+ readonly zishrink=$4
10+ readonly version_file=$5
11+ shift 5
1312
14- awk -v outfile=' main.zi' -f " ${ziguard} " $@ > " ${output_dir} /main.zi"
13+ ${awk_bin} -v outfile=' main.zi' -f " ${ziguard} " $@ > " ${output_dir} /main.zi"
1514
1615version=` sed 1q ${version_file} ` && \
17- LC_ALL=C awk -v version=" $$ version" -f " ${zishrink} " \
16+ LC_ALL=C ${awk_bin} -v version=" $$ version" -f " ${zishrink} " \
1817 ${output_dir} /main.zi > ${output_dir} /tzdata.zi
You can’t perform that action at this time.
0 commit comments