Ignore:
Timestamp:
06/29/2017 04:45:31 PM (7 years ago)
Author:
Pierre Labastie <pierre@…>
Branches:
ablfs-more, legacy, trunk
Children:
45f8a9c8
Parents:
a4acb12
Message:

Make the date of the SBU_DU file the same as the one reported at the end of
the jhalfs run. Note that date is the one when the run is started

File:
1 edited

Legend:

Unmodified
Added
Removed
  • common/create-sbu_du-report.sh

    ra4acb12 rc57747d  
    66LOGSDIR=$1
    77VERSION=$2
     8DATE=$3
    89
    910LINE="================================================================================"
     
    1112# Make sure that we have a directory as first argument
    1213[[ ! -d "$LOGSDIR" ]] && \
    13   echo -e "\nUSAGE: create-sbu_du-report.sh logs_directory [book_version]\n" && exit
     14  echo -e "\nUSAGE: create-sbu_du-report.sh logs_directory [book_version] [date]\n" && exit
    1415
    1516# Make sure that the first argument is a jhalfs logs directory
     
    1920# If this script is run manually, the book version may be unknown
    2021[[ -z "$VERSION" ]] && VERSION=unknown
     22[[ -z "$DATE" ]] && DATE=$(date --iso-8601)
    2123
    2224# If there is iteration logs directories, copy the logs inside iteration-1
     
    2628
    2729# Set the report file
    28 REPORT="$VERSION"-SBU_DU-$(date --iso-8601).report
     30REPORT="$VERSION"-SBU_DU-"$DATE".report
    2931
    3032[ -f $REPORT ] && : >$REPORT
Note: See TracChangeset for help on using the changeset viewer.