Changeset 3bb9cb in git


Ignore:
Timestamp:
May 2, 2011, 7:23:26 PM (12 years ago)
Author:
Oleksandr Motsak <motsak@…>
Branches:
(u'jengelh-datetime', 'ceac47cbc86fe4a15902392bdbb9bd2ae0ea02c6')(u'spielwiese', '0604212ebb110535022efecad887940825b97c3f')
Children:
4c811bd87d5d22598f48a690492a550955da7062
Parents:
10a85fe55eedddcdac7113f2591fa47d4753c91c
git-author:
Oleksandr Motsak <motsak@mathematik.uni-kl.de>2011-05-02 19:23:26+02:00
git-committer:
Mohamed Barakat <mohamed.barakat@rwth-aachen.de>2011-11-09 12:31:32+01:00
Message:
FIX: minor fixes to sw.sh
File:
1 edited

Legend:

Unmodified
Added
Removed
  • sw.sh

    r10a85fe r3bb9cb  
    7070
    7171echo "Creating empty tempdir: $SW" >> $LOG
    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; };  }
     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; }; }
    7373
    7474mkdir -p $SW || { echo "Error: cannot create tempdir: $SW" >> $LOG;  exit 1; }
     
    9393
    9494echo "Trying static version... " >> $LOG
    95 Build "--enable-p-procs-static" || { echo "Error: could not build with '--enable-p-procs-static'" >> $LOG; } && Check
     95Build "--enable-p-procs-static" && Check || { echo "Error: could not build with '--enable-p-procs-static'" >> $LOG; }
    9696
    9797# return git repo to the untouched state:
     98echo "Resetting the source directory... " >> $LOG
    9899Reset
    99100
    100101echo "Trying dynamic version... " >> $LOG
    101 Build "--enable-p-procs-dynamic" || { echo "Error: could not build with '--enable-p-procs-dynamic'" >> $LOG; } && Check
     102Build "--enable-p-procs-dynamic" && Check || { echo "Error: could not build with '--enable-p-procs-dynamic'" >> $LOG; }
    102103
    103104cd - || { CleanUp; exit 1; }
    104105
    105 CleanUp && exit 0 || exit 1
     106CleanUp || exit 1
     107
     108exit 0
Note: See TracChangeset for help on using the changeset viewer.