Admin/isatest-makedist
changeset 14037 3b7f3eec9684
parent 14032 a6239314e380
child 14170 edd5a2ea3807
equal deleted inserted replaced
14036:fb6040d4bbf8 14037:3b7f3eec9684
    18 TMP=/tmp/isatest-makedist.$$
    18 TMP=/tmp/isatest-makedist.$$
    19 MAIL=$HOME/bin/pmail
    19 MAIL=$HOME/bin/pmail
    20 
    20 
    21 LOGPREFIX=$HOME/log
    21 LOGPREFIX=$HOME/log
    22 MASTERLOG=$LOGPREFIX/isatest.log
    22 MASTERLOG=$LOGPREFIX/isatest.log
    23 ERRORLOG=$HOME/var/error.log
    23 ERRORDIR=$HOME/var
       
    24 ERRORLOG=$ERRORDIR/error.log
    24 RUNNING=$HOME/var/running
    25 RUNNING=$HOME/var/running
    25 DISTPREFIX=$HOME/isadist
    26 DISTPREFIX=$HOME/isadist
    26 MAKEDIST=$HOME/bin/makedist
    27 MAKEDIST=$HOME/bin/makedist
    27 MAKEALL=$HOME/bin/isatest-makeall
    28 MAKEALL=$HOME/bin/isatest-makeall
    28 TAR=gtar
    29 TAR=gtar
    51 
    52 
    52 ## main
    53 ## main
    53 
    54 
    54 # cleanup old error log and test-still-running files
    55 # cleanup old error log and test-still-running files
    55 rm -f $ERRORLOG
    56 rm -f $ERRORLOG
       
    57 rm -f $ERRORDIR/isatest-*.log
    56 rm -f $RUNNING/*.runnning
    58 rm -f $RUNNING/*.runnning
    57 
    59 
    58 export DISTPREFIX
    60 export DISTPREFIX
    59 
    61 
    60 DATE=$(date "+%Y-%m-%d")
    62 DATE=$(date "+%Y-%m-%d")
    79 
    81 
    80     echo "Could not build isabelle distribution. Log file available at" > $TMP
    82     echo "Could not build isabelle distribution. Log file available at" > $TMP
    81     echo "$HOSTNAME:$DISTLOG" >> $TMP
    83     echo "$HOSTNAME:$DISTLOG" >> $TMP
    82 
    84 
    83     for R in $MAILTO; do
    85     for R in $MAILTO; do
    84 	$MAIL "isabelle dist build failed" $R $TMP
    86         $MAIL "isabelle dist build failed" $R $TMP
    85     done
    87     done
    86 
    88 
    87     rm $TMP
    89     rm $TMP
    88 
    90 
    89     exit 1
    91     exit 1