summaryrefslogtreecommitdiffstats
path: root/release/checkout
blob: de35fd33d77407c421cd154846946d53846cc153 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
#!/bin/bash
# This script tags all modules listed in the "modules" file.
#
# Make sure to fix the set_urls function so that it uses the right tags.
# language_list becomes the subdirs file in the l10n module, make sure it's uptodate.
# Once it's all done, the script checks out the tagged directories under clean/.

#SVNUSER=coolo
#SVNPROTOCOL=svn+ssh

test -n "$SVNUSER" || { echo "You must set SVNUSER"; exit 1; }
test -n "$SVNPROTOCOL" || { echo "You must set SVNPROTOCOL"; exit 1; }

BASE=$SVNPROTOCOL://$SVNUSER@svn.kde.org/home/kde
headrev=`svn log -r HEAD -q $BASE | grep ^r | cut -b2-8 `

. versions

cd clean
for i in `cat ../modules`; do
  set_urls $i
  if test -d $subname; then 
	svn cleanup $subname
        svn switch $BASE/$HEADURL $subname
	svn up -r $headrev $subname
  else
        svn co -r $headrev $BASE/$HEADURL $subname
  fi
done