Add a header to the generated Makefile
This commit is contained in:
parent
19364871b0
commit
8bb92e71d0
1 changed files with 10 additions and 2 deletions
12
jhalfs
12
jhalfs
|
@ -150,6 +150,11 @@ XSL=dump-lfs-scripts.xsl
|
||||||
FNC=functions
|
FNC=functions
|
||||||
if [ -z $TEST ] ; then TEST=0 ; fi
|
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() {
|
get_book() {
|
||||||
# Check for Subversion instead of just letting the script hit 'svn' and fail.
|
# Check for Subversion instead of just letting the script hit 'svn' and fail.
|
||||||
test `type -p svn` || eval "echo \"This feature requires Subversion.\"
|
test `type -p svn` || eval "echo \"This feature requires Subversion.\"
|
||||||
|
@ -515,8 +520,11 @@ build_Makefile() {
|
||||||
PREV=$i
|
PREV=$i
|
||||||
done
|
done
|
||||||
|
|
||||||
# Stick variables and some defines at the top of the real makefile
|
# Add a header to the top of the real Makefile
|
||||||
echo "export SRC := /sources" > $MKFILE
|
echo -e "$HEADER\n" > $MKFILE
|
||||||
|
|
||||||
|
# Add some variables and include the functions file
|
||||||
|
echo "export SRC := /sources" >> $MKFILE
|
||||||
echo "export LFS := $BUILDDIR" >> $MKFILE
|
echo "export LFS := $BUILDDIR" >> $MKFILE
|
||||||
echo -e "export LOGDIR := $LOGDIR\n" >> $MKFILE
|
echo -e "export LOGDIR := $LOGDIR\n" >> $MKFILE
|
||||||
echo -e "include functions\n" >> $MKFILE
|
echo -e "include functions\n" >> $MKFILE
|
||||||
|
|
Reference in a new issue