Advertisement
Guest User

Untitled

a guest
May 9th, 2012
103
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 0.37 KB | None | 0 0
  1. DIR_LIST=$( find . -maxdepth 1 -type d | cut -d"/" -f 2 | egrep '^[a-zA-Z0-9]+$')
  2. for DIR in $DIR_LIST ; do
  3.     (
  4.         cd $DIR
  5.         ant
  6.     )
  7.  
  8.     if [[ ! "$(grep 'BUILD FAILED' ${DIR}/build.log)" ]] ; then
  9.         if [[ -d ../history/$DATA/$DIR ]] ; then
  10.             rm -r ../history/$DATA/$DIR
  11.         fi
  12.  
  13.         mv $DIR ../history/$DATA/$DIR
  14.     fi
  15. done
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement