]> granicus.if.org Git - nethack/commitdiff
show source of bits of makefiles (trunk only)
authorkeni <keni>
Thu, 21 Feb 2008 01:16:41 +0000 (01:16 +0000)
committerkeni <keni>
Thu, 21 Feb 2008 01:16:41 +0000 (01:16 +0000)
Mark the generated makefiles as generated and mark the source of each section
to aid debugging.

sys/unix/mkmkfile.sh

index d1eff429677ccfe493695a1028143cee9c6ffa53..a8ef779fe0f74b17531a381e13f11c9c6ff03c6d 100644 (file)
@@ -9,4 +9,14 @@
 #  $2 install path
 #  $3 hints file
 
-cat $3 $1 > $2
+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