blob: 5434075f79dbc6c5056365d45743e0c7259a8acc [file] [log] [blame]
david_williams1ee5c5f2008-01-09 06:27:00 +00001#!/bin/sh
2
david_williamsddd91632008-01-09 06:29:21 +00003# it is assumed we are executing this in COMMON_PAGES or the parent of COMMON_PAGES
david_williamscf78c6e2008-01-09 06:29:56 +00004COMMON_PAGES=commonPages
david_williams1ee5c5f2008-01-09 06:27:00 +00005
6# This script file is to help get builds started "fresh", when
david_williamsddd91632008-01-09 06:29:21 +00007# the ${COMMON_PAGES} directory already exists on local file system.
8# While it is in the cvs repository in ${COMMON_PAGES}, it is
david_williams1ee5c5f2008-01-09 06:27:00 +00009# meant to be executed from the parent directory
david_williamsddd91632008-01-09 06:29:21 +000010# of ${COMMON_PAGES} on the file system.
david_williams1ee5c5f2008-01-09 06:27:00 +000011
12# export is used, instead of checkout, just to avoid the CVS directories and since this code
13# for a local build, there should never be a need to check it back in to CVS.
14
15
david_williamsddd91632008-01-09 06:29:21 +000016if [ ! -e ${COMMON_PAGES} ]
david_williams1ee5c5f2008-01-09 06:27:00 +000017then
18 cd ..
david_williamsddd91632008-01-09 06:29:21 +000019 if [ ! -e ${COMMON_PAGES} ]
david_williams1ee5c5f2008-01-09 06:27:00 +000020 then
david_williamsddd91632008-01-09 06:29:21 +000021 echo "${COMMON_PAGES} does not exist as sub directory";
david_williams1ee5c5f2008-01-09 06:27:00 +000022 exit 1;
23 fi
24fi
25
26echo
27
david_williams42c5be22008-01-09 20:17:35 +000028$current=`pwd`
29echo " removing all of ${COMMON_PAGES} from ${current} ..."
david_williamsddd91632008-01-09 06:29:21 +000030rm -fr ${COMMON_PAGES}/*
31rm -fr ${COMMON_PAGES}/.project
32rm -fr ${COMMON_PAGES}/.settings
33mkdir -p ${COMMON_PAGES}
david_williams1ee5c5f2008-01-09 06:27:00 +000034
david_williamsddd91632008-01-09 06:29:21 +000035echo " checking out head of ${COMMON_PAGES} from cvs ..."
david_williamsad761622008-01-09 20:37:16 +000036cvs -Q -f -d :pserver:anonymous@dev.eclipse.org:/cvsroot/webtools export -d downloadsites -r HEAD webtools.releng/downloadsites
david_williams1ee5c5f2008-01-09 06:27:00 +000037
david_williamsad761622008-01-09 20:37:16 +000038cp ../downsites/webtools/commonPages ${COMMON_PAGES}
david_williams1ee5c5f2008-01-09 06:27:00 +000039
david_williams1ee5c5f2008-01-09 06:27:00 +000040echo
41