blob: f36d9e9b44883cec85a489731945ff97c348fcdc [file] [log] [blame]
david_williams89d80882007-10-08 04:38:44 +00001#!/bin/sh
2
3# This script file is to help get fresh files from cvs
4
5if [[ !("${1}" == "patches" || "${1}" == "downloads" || "${1}" == "committers") ]] ; then
6 echo ""
7 echo " Usage: ${0} patches | downloads | committers"
8 echo ""
9else
10
11subdir="${1}"
12
13backupdir="${subdir}TempBackup"
14
15echo " save backup copies ..."
16mkdir $backupdir
17# Note: do not use recurvise, since that would copy all of 'drops'
18cp ${subdir}/* $backupdir
19
20rm ${subdir}/*
21echo " checking out head of $subdir from cvs ..."
22cvs -Q -d :pserver:anonymous@dev.eclipse.org:/cvsroot/webtools export -d $subdir -r HEAD releng.wtptools/downloadsites/webtools/$subdir
23
24echo " make sure files have proper EOL format ..."
25dos2unix -quiet -keepdate ${subdir}/* > /dev/null 2>/dev/null
26
27fi