r3051 - jhalfs/branches/experimental/BLFS

manuel at linuxfromscratch.org manuel at linuxfromscratch.org
Wed Aug 23 13:08:24 PDT 2006


Author: manuel
Date: 2006-08-23 14:08:23 -0600 (Wed, 23 Aug 2006)
New Revision: 3051

Modified:
   jhalfs/branches/experimental/BLFS/gen-makefile.sh
Log:
Added a tracking dir touch for meta-packages at target level.
Still need to revolve the  touch for alsa, kde-base and xorg7 at dependencies level.

Modified: jhalfs/branches/experimental/BLFS/gen-makefile.sh
===================================================================
--- jhalfs/branches/experimental/BLFS/gen-makefile.sh	2006-08-23 18:45:03 UTC (rev 3050)
+++ jhalfs/branches/experimental/BLFS/gen-makefile.sh	2006-08-23 20:08:23 UTC (rev 3051)
@@ -96,6 +96,55 @@
 }
 
 #----------------------------#
+__write_meta_pkg_touch() {   #
+#----------------------------#
+  local meta_pkg=$1
+  local pkg_ver=$(grep "^${meta_pkg}[[:space:]]" ../packages | cut -f3)
+  local gnome_core_ver=$(grep "^gnome-core[[:space:]]" ../packages | cut -f3)
+  local kde_core_ver=$(grep "^kde-core[[:space:]]" ../packages | cut -f3)
+  local kde_full_ver=$(grep "^kde-full[[:space:]]" ../packages | cut -f3)
+
+(
+cat << EOF
+999-z-$meta_pkg:  $PREV
+	@touch \$(TRACKING_DIR)/${meta_pkg}-${pkg_ver}
+EOF
+) >> $MKFILE.tmp
+
+  case $meta_pkg in
+    gnome-full )
+(
+cat << EOF
+	@touch \$(TRACKING_DIR)/gnome-core-${gnome_core_ver}
+EOF
+) >> $MKFILE.tmp
+      ;;
+    kde-full )
+(
+cat << EOF
+	@touch \$(TRACKING_DIR)/kde-core-${kde_core_ver}
+EOF
+) >> $MKFILE.tmp
+      ;;
+    kde-koffice )
+(
+cat << EOF
+	@touch \$(TRACKING_DIR)/kde-core-${kde_core_ver}
+	@touch \$(TRACKING_DIR)/kde-full-${kde_full_ver}
+EOF
+) >> $MKFILE.tmp
+      ;;
+  esac
+
+(
+cat << EOF
+	@touch  \$@
+EOF
+) >> $MKFILE.tmp
+
+}
+
+#----------------------------#
 generate_Makefile () {       #
 #----------------------------#
 
@@ -115,14 +164,26 @@
     PREV_PACKAGE=${this_script}
   done
 
+  PACKAGE=$(basename $PWD)
 
+  case $PACKAGE in
+    alsa | \
+    gnome-core | \
+    gnome-full | \
+    kde-core | \
+    kde-full | \
+    kde-koffice | \
+    xorg7 )  __write_meta_pkg_touch "${PACKAGE}" ;;
+  esac
+
+
   # Add a header, some variables and include the function file
   # to the top of the real Makefile.
 (
     cat << EOF
 $HEADER
 
-PACKAGE= "`basename $PWD`"
+PACKAGE= $PACKAGE
 TRACKING_DIR= $TRACKING_DIR
 
 BOLD= ""




More information about the alfs-log mailing list