Makefile construction cleanup
Update the help text in setup.sh. When building with a hints file from TOP, the path to the hints file should start from TOP (instead of "hints/foo"). Make the notes in the generated makefiles consistent as to case.
This commit is contained in:
@@ -8,7 +8,8 @@
|
||||
# $1 basefile
|
||||
# $2 basefile tag
|
||||
# $3 install path
|
||||
# $4 hints file
|
||||
# $4 hints file (path)
|
||||
# $5 hints file (as given by user)
|
||||
|
||||
echo "#" > $3
|
||||
echo "# This file is generated automatically. Do not edit." >> $3
|
||||
@@ -18,25 +19,25 @@ echo "MAKEFILE_$2=1" >> $3
|
||||
echo "" >> $3
|
||||
|
||||
echo "###" >> $3
|
||||
echo "### Start $4 PRE" >> $3
|
||||
echo "### Start $5 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 "### End $5 PRE" >> $3
|
||||
echo "" >> $3
|
||||
|
||||
echo "###" >> $3
|
||||
echo "### Start $1" >> $3
|
||||
echo "###" >> $3
|
||||
cat $1 >> $3
|
||||
echo "### end of file" >> $3
|
||||
echo "### End $1" >> $3
|
||||
echo "" >> $3
|
||||
|
||||
echo "###" >> $3
|
||||
echo "### Start $4 POST" >> $3
|
||||
echo "### Start $5 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
|
||||
echo "### End $5 POST" >> $3
|
||||
|
||||
Reference in New Issue
Block a user