blob: a68f70b443cd2576ae0a43d87f88ea372e68a78d [file] [log] [blame]
david_williams1ee5c5f2008-01-09 06:27:00 +00001#!/bin/sh
2
3# it is assumed we are executing this in CUSTOM_PAGES or the parent of CUSTOM_PAGES
4CUSTOM_PAGES=custompages
5
6# This script file is to help get builds started "fresh", when
7# the ${CUSTOM_PAGES} directory already exists on local file system.
8# While it is in the cvs repository in ${CUSTOM_PAGES}, it is
9# meant to be executed from the parent directory
10# of ${CUSTOM_PAGES} on the file system.
11
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
16if [ ! -e ${CUSTOM_PAGES} ]
17then
18 cd ..
19 if [ ! -e ${CUSTOM_PAGES} ]
20 then
21 echo "${CUSTOM_PAGES} does not exist as sub directory";
22 exit 1;
23 fi
24fi
25
26echo
27
28echo " removing all of ${CUSTOM_PAGES} ..."
29rm -fr ${CUSTOM_PAGES}/*
30rm -fr ${CUSTOM_PAGES}/.project
31rm -fr ${CUSTOM_PAGES}/.settings
32mkdir -p ${CUSTOM_PAGES}
33
34echo " checking out head of ${CUSTOM_PAGES} from cvs ..."
35cvs -Q -f -d :pserver:anonymous@dev.eclipse.org:/cvsroot/webtools export -d webtools.releng/downloadsites/${CUSTOM_PAGES} -r HEAD webtools.releng/downloadsites/${CUSTOM_PAGES}
36
37
38echo " making sure releng control files are executable and have proper EOL ..."
39dos2unix ${CUSTOM_PAGES}/*.sh* ${CUSTOM_PAGES}/*.properties ${CUSTOM_PAGES}/*.xml >/dev/null 2>>/dev/null
40chmod +x ${CUSTOM_PAGES}/*.sh > /dev/null
41echo
42