r3064 - jhalfs/trunk/BLFS

manuel at linuxfromscratch.org manuel at linuxfromscratch.org
Sat Aug 26 02:31:16 PDT 2006


Author: manuel
Date: 2006-08-26 03:31:16 -0600 (Sat, 26 Aug 2006)
New Revision: 3064

Modified:
   jhalfs/trunk/BLFS/gen-makefile.sh
Log:
Be sure that only the tracking file for the just installed package version is left on TRACKING_DIR.

Modified: jhalfs/trunk/BLFS/gen-makefile.sh
===================================================================
--- jhalfs/trunk/BLFS/gen-makefile.sh	2006-08-26 03:19:13 UTC (rev 3063)
+++ jhalfs/trunk/BLFS/gen-makefile.sh	2006-08-26 09:31:16 UTC (rev 3064)
@@ -55,7 +55,8 @@
   if [[ -n "$pkg_ver" ]] ; then
 (
 cat << EOF
-	@touch \$(TRACKING_DIR)/${pkg_name#*-?-}-${pkg_ver}
+	@rm -f \$(TRACKING_DIR)/${pkg_name#*-?-}-{0..9}* && \\
+	touch \$(TRACKING_DIR)/${pkg_name#*-?-}-${pkg_ver}
 EOF
 ) >> $MKFILE.tmp
   fi
@@ -64,21 +65,24 @@
     *-alsa-lib ) #this the unique mandatory package for ALSA support.
 (
 cat << EOF
-	@touch \$(TRACKING_DIR)/alsa-${alsa_ver}
+	@rm -f \$(TRACKING_DIR)/alsa-{0..9}* && \\
+	touch \$(TRACKING_DIR)/alsa-${alsa_ver}
 EOF
 ) >> $MKFILE.tmp
       ;;
     *-kdebase )
 (
 cat << EOF
-	@touch \$(TRACKING_DIR)/kde-core-${kde_core_ver}
+	@rm -f \$(TRACKING_DIR)/kde-core-{0..9}* && \\
+	touch \$(TRACKING_DIR)/kde-core-${kde_core_ver}
 EOF
 ) >> $MKFILE.tmp
       ;;
     *-xorg7-driver ) # xtrerm2 and rman are optional
 (
 cat << EOF
-	@touch \$(TRACKING_DIR)/xorg7-${xorg7_ver}
+	@rm -f \$(TRACKING_DIR)/xorg7-{0..9}* && \\
+	touch \$(TRACKING_DIR)/xorg7-${xorg7_ver}
 EOF
 ) >> $MKFILE.tmp
       ;;
@@ -134,7 +138,8 @@
 cat << EOF
 
 999-z-$meta_pkg:  $PREV_PACKAGE
-	@touch \$(TRACKING_DIR)/${meta_pkg}-${pkg_ver}
+	@rm -f \$(TRACKING_DIR)/${meta_pkg}-{0..9}* && \\
+	touch \$(TRACKING_DIR)/${meta_pkg}-${pkg_ver}
 EOF
 ) >> $MKFILE.tmp
 
@@ -142,14 +147,16 @@
     gnome-full )
 (
 cat << EOF
-	@touch \$(TRACKING_DIR)/gnome-core-${gnome_core_ver}
+	@rm -f \$(TRACKING_DIR)/gnome-core-{0..9}* && \\
+	touch \$(TRACKING_DIR)/gnome-core-${gnome_core_ver}
 EOF
 ) >> $MKFILE.tmp
       ;;
     kde-koffice )
 (
 cat << EOF
-	@touch \$(TRACKING_DIR)/kde-full-${kde_full_ver}
+	@rm -f \$(TRACKING_DIR)/kde-full-{0..9}* && \\
+	touch \$(TRACKING_DIR)/kde-full-${kde_full_ver}
 EOF
 ) >> $MKFILE.tmp
       ;;




More information about the alfs-log mailing list