Add a header to the generated Makefile

This commit is contained in:
Jeremy Huntwork 2005-10-03 03:24:16 +00:00
parent 19364871b0
commit 8bb92e71d0

12
jhalfs
View file

@ -150,6 +150,11 @@ XSL=dump-lfs-scripts.xsl
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 @@ build_Makefile() {
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