Changeset 2522 in /cluster/svnroot


Ignore:
Timestamp:
Jul 14, 2010 12:39:41 AM (10 years ago)
Author:
skylar
Message:

fixed script to remove build directory and generate md5sum properly (#512)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • bccd-ng/trunk/bin/auto_build_wrapper.sh

    r2338 r2522  
    1 #!/bin/bash
     1#!/bin/bash -x
    22
    33if [ -z "$1" ]; then
     
    8989fi
    9090
    91 CMD="./$BLDCD --arch i386 --suite lenny --outiso ${TEMPISO} --updatedb $DBUSER"
     91CMD="./$BLDCD --arch i386 --suite lenny --outiso ${TEMPISO} --updatedb $DBUSER" 
    9292$CMD
    9393RC=$?
     
    139139fi
    140140
    141 /bin/sed -i -e 's/bccd_latest.iso.[[:alpha:]][[:alpha:]]*/bccd_latest.iso/g' ${OUTISO}.md5
    142 #CMD="$CMD {OUTISO}.md5"
     141/bin/sed -i -e 's/bccd_latest.iso.*/bccd_latest.iso/g' ${OUTISO}.md5
     142CMD="/bin/chmod 644 ${OUTISO}.md5"
    143143$CMD
    144 #RC=$?
    145 #if [ "$RC" -ne "0" ]; then
    146 #        echo "$CMD died on $RC"
    147 #        exit $RC
    148 #fi
     144RC=$?
     145if [ "$RC" -ne "0" ]; then
     146        echo "$CMD died on $RC"
     147        exit $RC
     148fi
    149149
    150150popd
Note: See TracChangeset for help on using the changeset viewer.