Changed a hack by proper code.
This commit is contained in:
parent
7a519f3c5f
commit
4edf3b7ded
2 changed files with 5 additions and 4 deletions
|
@ -198,19 +198,21 @@ HEADER="# This file is automatically generated by jhalfs
|
|||
|
||||
|
||||
|
||||
|
||||
|
||||
#----------------------------------#
|
||||
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
|
||||
}
|
||||
|
|
|
@ -108,7 +108,6 @@ wrt_logs() { #
|
|||
(
|
||||
cat << EOF
|
||||
@pushd logs 1> /dev/null && \\
|
||||
rm $ITERATION && \\
|
||||
mkdir $ITERATION && \\
|
||||
mv ${LOGS} $ITERATION && \\
|
||||
popd 1> /dev/null
|
||||
|
|
Reference in a new issue