@@ -157,41 +157,41 @@ jobs:
157
157
tar xf boost_${{ matrix.boost-ver }}.tar.bz2
158
158
mkdir boost_${{ matrix.boost-ver }}/installdir
159
159
160
- - name : Patch boost source (MacOS)
161
- if : matrix.os == 'macos-12' && steps.cache-boost-macos.outputs.cache-hit != 'true' && matrix.boost == 'oldest'
162
- run : |
163
- cd boost_${{ matrix.boost-ver }}/tools/build/src/engine
164
- cp build.sh build.sh.bak
165
- awk '/darwin\)/{print; print " BOOST_JAM_OPT_JAM=\"$BOOST_JAM_OPT_JAM $CFLAGS $LIBS\""; next }1' build.sh > build.sh.tmp
166
- mv build.sh.tmp build.sh
167
- chmod a+x build.sh
168
- # cat build.sh
169
- # cp execcmd.c execcmd.c.bak
170
- # awk '/#include "execcmd.h"/{print; print "#include \"output.h\""; next }1' execcmd.c > execcmd.c.tmp
171
- # mv execcmd.c.tmp execcmd.c
172
- # cat execcmd.c
173
- cp make.c make.c.bak
174
- awk '/#include "make.h"/{print; print "#include \"output.h\""; next }1' make.c > make.c.tmp
175
- mv make.c.tmp make.c
176
- # cat make.c
177
- cp filesys.c filesys.c.bak
178
- awk '/#include "filesys.h"/{print; print "int filelist_empty( FILELIST * list );"; next }1' filesys.c > filesys.c.tmp
179
- mv filesys.c.tmp filesys.c
180
- # cat filesys.c
181
- cp modules/path.c modules/path.c.bak
182
- awk '/#include "..\/timestamp.h"/{print; print "#include \"../filesys.h\""; next }1' modules/path.c > modules/path.c.tmp
183
- mv modules/path.c.tmp modules/path.c
184
- # cat modules/path.c
185
- cp fileunix.c fileunix.c.bak
186
- awk '/#include "jam.h"/{print; print "int filelist_empty( FILELIST * list );"; next }1' fileunix.c > fileunix.c.tmp
187
- awk '/#include "jam.h"/{print; print "#include \"filesys.h\""; next }1' fileunix.c.tmp > fileunix.c.tmp.1
188
- awk '/#include "filesys.h"/{print; print "int file_collect_archive_content_( file_archive_info_t * const archive );"; next }1' fileunix.c.tmp.1 > fileunix.c
189
- # cat fileunix.c
190
- cd ../tools
191
- cp darwin.jam darwin.jam.bak
192
- head -n138 darwin.jam > darwin.jam.tmp
193
- tail -n +145 darwin.jam >> darwin.jam.tmp
194
- mv darwin.jam.tmp darwin.jam
160
+ # - name: Patch boost source (MacOS)
161
+ # if: matrix.os == 'macos-12' && steps.cache-boost-macos.outputs.cache-hit != 'true' && matrix.boost == 'oldest'
162
+ # run: |
163
+ # cd boost_${{ matrix.boost-ver }}/tools/build/src/engine
164
+ # cp build.sh build.sh.bak
165
+ # awk '/darwin\)/{print; print " BOOST_JAM_OPT_JAM=\"$BOOST_JAM_OPT_JAM $CFLAGS $LIBS\""; next }1' build.sh > build.sh.tmp
166
+ # mv build.sh.tmp build.sh
167
+ # chmod a+x build.sh
168
+ # # cat build.sh
169
+ # # cp execcmd.c execcmd.c.bak
170
+ # # awk '/#include "execcmd.h"/{print; print "#include \"output.h\""; next }1' execcmd.c > execcmd.c.tmp
171
+ # # mv execcmd.c.tmp execcmd.c
172
+ # # cat execcmd.c
173
+ # cp make.c make.c.bak
174
+ # awk '/#include "make.h"/{print; print "#include \"output.h\""; next }1' make.c > make.c.tmp
175
+ # mv make.c.tmp make.c
176
+ # # cat make.c
177
+ # cp filesys.c filesys.c.bak
178
+ # awk '/#include "filesys.h"/{print; print "int filelist_empty( FILELIST * list );"; next }1' filesys.c > filesys.c.tmp
179
+ # mv filesys.c.tmp filesys.c
180
+ # # cat filesys.c
181
+ # cp modules/path.c modules/path.c.bak
182
+ # awk '/#include "..\/timestamp.h"/{print; print "#include \"../filesys.h\""; next }1' modules/path.c > modules/path.c.tmp
183
+ # mv modules/path.c.tmp modules/path.c
184
+ # # cat modules/path.c
185
+ # cp fileunix.c fileunix.c.bak
186
+ # awk '/#include "jam.h"/{print; print "int filelist_empty( FILELIST * list );"; next }1' fileunix.c > fileunix.c.tmp
187
+ # awk '/#include "jam.h"/{print; print "#include \"filesys.h\""; next }1' fileunix.c.tmp > fileunix.c.tmp.1
188
+ # awk '/#include "filesys.h"/{print; print "int file_collect_archive_content_( file_archive_info_t * const archive );"; next }1' fileunix.c.tmp.1 > fileunix.c
189
+ # # cat fileunix.c
190
+ # cd ../tools
191
+ # cp darwin.jam darwin.jam.bak
192
+ # head -n138 darwin.jam > darwin.jam.tmp
193
+ # tail -n +145 darwin.jam >> darwin.jam.tmp
194
+ # mv darwin.jam.tmp darwin.jam
195
195
196
196
- name : Build boost (MacOS)
197
197
if : matrix.os == 'macos-12' && steps.cache-boost-macos.outputs.cache-hit != 'true'
0 commit comments