r2631 - jhalfs/trunk/common

manuel at linuxfromscratch.org manuel at linuxfromscratch.org
Thu May 4 11:26:43 PDT 2006


Author: manuel
Date: 2006-05-04 12:26:42 -0600 (Thu, 04 May 2006)
New Revision: 2631

Modified:
   jhalfs/trunk/common/common-functions
   jhalfs/trunk/common/func_compare.sh
Log:
Changed a hack by proper code.

Modified: jhalfs/trunk/common/common-functions
===================================================================
--- jhalfs/trunk/common/common-functions	2006-05-04 18:26:09 UTC (rev 2630)
+++ jhalfs/trunk/common/common-functions	2006-05-04 18:26:42 UTC (rev 2631)
@@ -198,19 +198,21 @@
 
 
 
-
-
 #----------------------------------#
 wrt_target() {                     # Create target and initialize log file
 #----------------------------------#
   local i=$1
   local PREV=$2
+  case $i in
+    iteration* ) local LOGFILE=$this_script.log ;;
+             * ) local LOGFILE=$this_script ;;
+  esac
 (
 cat << EOF
 
 $i:  $PREV
 	@\$(call echo_message, Building)
-	@echo -e "\n\`date\`\n\nKB: \`du -skx --exclude=jhalfs \$(MOUNT_PT)\`\n" >logs/$this_script
+	@echo -e "\n\`date\`\n\nKB: \`du -skx --exclude=jhalfs \$(MOUNT_PT)\`\n" >logs/$LOGFILE
 EOF
 ) >> $MKFILE.tmp
 }

Modified: jhalfs/trunk/common/func_compare.sh
===================================================================
--- jhalfs/trunk/common/func_compare.sh	2006-05-04 18:26:09 UTC (rev 2630)
+++ jhalfs/trunk/common/func_compare.sh	2006-05-04 18:26:42 UTC (rev 2631)
@@ -108,7 +108,6 @@
 (
     cat << EOF
 	@pushd logs 1> /dev/null && \\
-	rm $ITERATION && \\
 	mkdir $ITERATION && \\
 	mv ${LOGS} $ITERATION && \\
 	popd 1> /dev/null




More information about the alfs-log mailing list