r2059 - jhalfs/trunk

jhuntwork at linuxfromscratch.org jhuntwork at linuxfromscratch.org
Sun Oct 2 20:24:17 PDT 2005


Author: jhuntwork
Date: 2005-10-02 21:24:16 -0600 (Sun, 02 Oct 2005)
New Revision: 2059

Modified:
   jhalfs/trunk/jhalfs
Log:
Add a header to the generated Makefile

Modified: jhalfs/trunk/jhalfs
===================================================================
--- jhalfs/trunk/jhalfs	2005-10-03 02:48:26 UTC (rev 2058)
+++ jhalfs/trunk/jhalfs	2005-10-03 03:24:16 UTC (rev 2059)
@@ -150,6 +150,11 @@
 FNC=functions
 if [ -z $TEST ] ; then TEST=0 ; fi
 
+HEADER="# This file is automatically generated by jhalfs
+# DO NOT EDIT THIS FILE MANUALLY
+#
+# Generated on `date \"+%F %X %Z\"`"
+
 get_book() {
   # Check for Subversion instead of just letting the script hit 'svn' and fail.
   test `type -p svn` || eval "echo \"This feature requires Subversion.\"
@@ -515,8 +520,11 @@
     PREV=$i
   done
 
-  # Stick variables and some defines at the top of the real makefile
-  echo "export SRC := /sources" > $MKFILE
+  # Add a header to the top of the real Makefile
+  echo -e "$HEADER\n" > $MKFILE
+
+  # Add some variables and include the functions file
+  echo "export SRC := /sources" >> $MKFILE
   echo "export LFS := $BUILDDIR" >> $MKFILE
   echo -e "export LOGDIR := $LOGDIR\n" >> $MKFILE
   echo -e "include functions\n" >> $MKFILE




More information about the alfs-log mailing list