Changeset 10a85fe in git
- Timestamp:
- May 2, 2011, 6:55:13 PM (12 years ago)
- Branches:
- (u'jengelh-datetime', 'ceac47cbc86fe4a15902392bdbb9bd2ae0ea02c6')(u'spielwiese', '0604212ebb110535022efecad887940825b97c3f')
- Children:
- 3bb9cb2aa362f52992e1584a41e4f67368e603b3
- Parents:
- 3033f07edbebc827dd4bf79ffda980b3f5a6ba50
- git-author:
- Oleksandr Motsak <motsak@mathematik.uni-kl.de>2011-05-02 18:55:13+02:00
- git-committer:
- Mohamed Barakat <mohamed.barakat@rwth-aachen.de>2011-11-09 12:31:32+01:00
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
sw.sh
r3033f0 r10a85fe 3 3 PWD=`pwd` 4 4 BRANCH="spielwiese" 5 6 # configure' options 5 7 CFGOPTIONS="--with-gmp=yes" 6 MKOPTIONS="-j9" 8 9 # computer specific make options: e.g. -j9 10 #MKOPTIONS="-j9" 11 MKOPTIONS="" 12 13 D=`date +%y.%m.%d.%H.%M.%S` 14 7 15 # tempdir (absolute path!) 8 SW="$PWD/SW "16 SW="$PWD/SW_$D.dir" 9 17 10 18 # we try to use log instead of consequent --quiet 11 LOG="$PWD/ `date`.log"19 LOG="$PWD/SW_$D.log" 12 20 13 21 # log or no log? … … 15 23 16 24 echo "DATE: `date`" >> $LOG 25 echo "HOST: `hostname`" >> $LOG 26 echo "SYSTEM: `uname -a`" >> $LOG 27 17 28 18 29 CleanUp() 19 30 { 20 31 echo "Deleting tempdir: $SW" >> $LOG 21 rm -f -R $SW1>> $LOG 2>&132 rm -f -R "$SW" 1>> $LOG 2>&1 22 33 } 23 34 … … 59 70 60 71 echo "Creating empty tempdir: $SW" >> $LOG 61 [ -d $SW ] && { echo "Error: $SW exists... cleaning up..." >> $LOG; CleanUp;}72 [ -d $SW ] && { echo "Error: $SW exists... cleaning up..." >> $LOG; mv -f $SW "$SW.moved" 1>> $LOG 2>&1 && { rm -f -R "$SW.moved" 1>> $LOG 2>&1 || echo "Error: could not remove '$SW.moved'"; } || { echo "Error: could not rename '$SW' -> '$SW.moved'"; exit 1; }; } 62 73 63 74 mkdir -p $SW || { echo "Error: cannot create tempdir: $SW" >> $LOG; exit 1; }
Note: See TracChangeset
for help on using the changeset viewer.