hints system changes and more Mac packaging
update file headers add "#-PRE" and "#-POST" keywords (no default) so hints file can wrap Makefile.* add make var with name of makefile (e.g. MAKEFILE_TOP) so hints file can be conditional on the file add skeletel Mac Qt packaging target add missing aux file generation for Mac Term packaging
This commit is contained in:
@@ -1,23 +1,42 @@
|
||||
#!/bin/sh
|
||||
# NetHack 3.5 mkmkfile.sh $Date$ $Revision$
|
||||
# SCCS Id: @(#)macosx 3.5 2007/12/12
|
||||
# Copyright (c) Kenneth Lorber, Kensington, Maryland, 2007.
|
||||
# NetHack may be freely redistributed. See license for details.
|
||||
|
||||
# build one makefile
|
||||
# args are:
|
||||
# $1 basefile
|
||||
# $2 install path
|
||||
# $3 hints file
|
||||
# $2 basefile tag
|
||||
# $3 install path
|
||||
# $4 hints file
|
||||
|
||||
echo "#" > $2
|
||||
echo "# This file is generated automatically. Do not edit." >> $2
|
||||
echo "# Your changes will be lost. See sys/unix/NewInstall.unx." >> $2
|
||||
echo "###" >> $2
|
||||
echo "### Start $3" >> $2
|
||||
echo "###" >> $2
|
||||
cat $3 >> $2
|
||||
echo "### end of file" >> $2
|
||||
echo "### Start $1" >> $2
|
||||
cat $1 >> $2
|
||||
echo "### end of file" >> $2
|
||||
echo "#" > $3
|
||||
echo "# This file is generated automatically. Do not edit." >> $3
|
||||
echo "# Your changes will be lost. See sys/unix/NewInstall.unx." >> $3
|
||||
echo "# Identify this file:" >> $3
|
||||
echo "MAKEFILE_$2=1" >> $3
|
||||
echo "" >> $3
|
||||
|
||||
echo "###" >> $3
|
||||
echo "### Start $4 PRE" >> $3
|
||||
echo "###" >> $3
|
||||
awk '/^#-PRE/,/^#-POST/{ \
|
||||
if(index($0, "#-PRE") == 1) print "# (new segment at source line",NR,")"; \
|
||||
if(index($0, "#-P") != 1) print}' $4 >> $3
|
||||
echo "### end $4 PRE" >> $3
|
||||
echo "" >> $3
|
||||
|
||||
echo "###" >> $3
|
||||
echo "### Start $1" >> $3
|
||||
echo "###" >> $3
|
||||
cat $1 >> $3
|
||||
echo "### end of file" >> $3
|
||||
echo "" >> $3
|
||||
|
||||
echo "###" >> $3
|
||||
echo "### Start $4 POST" >> $3
|
||||
echo "###" >> $3
|
||||
awk '/^#-POST/,/^#-PRE/{ \
|
||||
if(index($0, "#-POST") == 1) print "# (new segment at source line",NR,")"; \
|
||||
if(index($0, "#-P") != 1) print}' $4 >> $3
|
||||
echo "### end $4 POST" >> $3
|
||||
|
||||
Reference in New Issue
Block a user