From 936efa8197880067d7be6dbd6593352fc5169b3d Mon Sep 17 00:00:00 2001 From: Manuel Canales Esparcia Date: Mon, 11 Dec 2006 13:59:08 +0000 Subject: [PATCH] CLFSx: Create a custom /etc/clfs-release file. --- CLFS/master.sh | 5 ++++- CLFS2/master.sh | 3 ++- CLFS3/master.sh | 1 + 3 files changed, 7 insertions(+), 2 deletions(-) diff --git a/CLFS/master.sh b/CLFS/master.sh index 43455b8..b3cd69f 100644 --- a/CLFS/master.sh +++ b/CLFS/master.sh @@ -628,7 +628,7 @@ bootable_Makefiles() { # fi - for file in {bootable,the-end}/* ; do + for file in bootable/* ; do # Keep the script file name this_script=`basename $file` @@ -766,6 +766,8 @@ cat << EOF all: ck_UID mk_SETUP mk_CROSS mk_SUDO mk_SYSTOOLS create-sbu_du-report mk_BLFS_TOOL @sudo make do-housekeeping + @echo "$VERSION - jhalfs build" > clfs-release && \\ + sudo mv clfs-release \$(MOUNT_PT)/etc @\$(call echo_finished,$VERSION) ck_UID: @@ -865,6 +867,7 @@ all: ck_UID mk_SETUP mk_CROSS mk_SUDO @\$(call echo_boot_finished,$VERSION) makesys: mk_FINAL mk_BLFS_TOOL + @echo "$VERSION - jhalfs build" > /etc/clfs-release @\$(call echo_finished,$VERSION) diff --git a/CLFS2/master.sh b/CLFS2/master.sh index 8ae492f..2d55d8b 100644 --- a/CLFS2/master.sh +++ b/CLFS2/master.sh @@ -337,7 +337,7 @@ bootable_Makefiles() { # # NOTE: new makfile format forces the last script, *chowning, into a separate # phase. case ${this_script} in - *chowning) chowning=${this_script} ;; + *chowning) chowning=" ${this_script}" ;; *) bootable="$bootable $this_script" ;; esac # @@ -441,6 +441,7 @@ mk_LUSER: mk_SETUP @touch \$@ mk_ROOT: + @echo "$VERSION-sysroot - jhalfs build" > \$(MOUNT_PT)/etc/clfs-release @sudo make SHELL=/bin/bash ROOT @touch \$@ diff --git a/CLFS3/master.sh b/CLFS3/master.sh index eed9990..b75989b 100644 --- a/CLFS3/master.sh +++ b/CLFS3/master.sh @@ -444,6 +444,7 @@ mk_LUSER: mk_SETUP @touch \$@ mk_ROOT: + @echo "$VERSION-embedded - jhalfs build" > \$(MOUNT_PT)/etc/clfs-release @sudo make SHELL=/bin/bash ROOT @touch \$@