blob: 97d16814e6072dcc03c072b9a641ceee5444b683 [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
4COMMON_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_williamsddd91632008-01-09 06:29:21 +000028echo " removing all of ${COMMON_PAGES} ..."
29rm -fr ${COMMON_PAGES}/*
30rm -fr ${COMMON_PAGES}/.project
31rm -fr ${COMMON_PAGES}/.settings
32mkdir -p ${COMMON_PAGES}
david_williams1ee5c5f2008-01-09 06:27:00 +000033
david_williamsddd91632008-01-09 06:29:21 +000034echo " checking out head of ${COMMON_PAGES} from cvs ..."
35cvs -Q -f -d :pserver:anonymous@dev.eclipse.org:/cvsroot/webtools export -d webtools.releng/downloadsites/${COMMON_PAGES} -r HEAD webtools.releng/downloadsites/${COMMON_PAGES}
david_williams1ee5c5f2008-01-09 06:27:00 +000036
37
38echo " making sure releng control files are executable and have proper EOL ..."
david_williamsddd91632008-01-09 06:29:21 +000039dos2unix ${COMMON_PAGES}/*.sh* ${COMMON_PAGES}/*.properties ${COMMON_PAGES}/*.xml >/dev/null 2>>/dev/null
40chmod +x ${COMMON_PAGES}/*.sh > /dev/null
david_williams1ee5c5f2008-01-09 06:27:00 +000041echo
42