david_williams | 944068e | 2007-02-10 19:13:11 +0000 | [diff] [blame] | 1 | |
| 2 | # This script should be "copied up" and ran from a |
| 3 | # directory "above" the main working directories of |
david_williams | cdeaa70 | 2007-05-26 22:12:58 +0000 | [diff] [blame] | 4 | # ${updateToolsDir}. |
david_williams | 944068e | 2007-02-10 19:13:11 +0000 | [diff] [blame] | 5 | # This is typically the users $HOME directory |
| 6 | |
| 7 | updateToolsDir=org.eclipse.wtp.releng.webupdatesite |
| 8 | |
| 9 | echo " " |
david_williams | cdeaa70 | 2007-05-26 22:12:58 +0000 | [diff] [blame] | 10 | echo " Removing old ${updateToolsDir} and exporting fresh HEAD versions." |
david_williams | 944068e | 2007-02-10 19:13:11 +0000 | [diff] [blame] | 11 | echo " " |
| 12 | |
david_williams | cdeaa70 | 2007-05-26 22:12:58 +0000 | [diff] [blame] | 13 | rm -fr ${updateToolsDir} |
david_williams | 944068e | 2007-02-10 19:13:11 +0000 | [diff] [blame] | 14 | echo " " |
| 15 | |
| 16 | # ISSUE: we should move away from using 'head' version |
| 17 | # Note: we can use "local host" since we are running on the same cluser as the cvs server |
| 18 | # otherwise, if running remotely, localhos should be changed to 'dev.eclpise.org' |
david_williams | cdeaa70 | 2007-05-26 22:12:58 +0000 | [diff] [blame] | 19 | cvs -Q -f -d :pserver:anonymous@dev.eclipse.org:/cvsroot/webtools export -r HEAD ${updateToolsDir} |
david_williams | 944068e | 2007-02-10 19:13:11 +0000 | [diff] [blame] | 20 | |
david_williams | cdeaa70 | 2007-05-26 22:12:58 +0000 | [diff] [blame] | 21 | dos2unix -q ${updateToolsDir}/build-home/*.sh |
| 22 | dos2unix -q ${updateToolsDir}/build-home/*.xml |
| 23 | chmod -R +x ${updateToolsDir}/build-home/*.sh |
david_williams | 944068e | 2007-02-10 19:13:11 +0000 | [diff] [blame] | 24 | |
| 25 | |
| 26 | echo " for complete refresh, use something similar to following" |
| 27 | echo " " |
david_williams | cdeaa70 | 2007-05-26 22:12:58 +0000 | [diff] [blame] | 28 | echo " cd ${updateToolsDir}/build-home/" |
david_williams | 944068e | 2007-02-10 19:13:11 +0000 | [diff] [blame] | 29 | echo " screen -x" |
| 30 | echo " #for Callisto" |
| 31 | echo " ./runUpdateAllProjects.sh -clean | tee out.txt" |
| 32 | echo " #for Europa" |
| 33 | echo " ./runUpdateAllEuropaProjects.sh -clean | tee out.txt" |
| 34 | echo " " |
| 35 | echo " When complete, be sure to inspect or at least grep the out.txt file for anomilies, e.g. " |
| 36 | echo " grep failed out.txt" |
| 37 | echo " grep error out.txt" |
| 38 | echo " grep exception out.txt" |
david_williams | cdeaa70 | 2007-05-26 22:12:58 +0000 | [diff] [blame] | 39 | echo " " |
| 40 | |