You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
31 lines
854 B
31 lines
854 B
15 years ago
|
#!/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
|
||
|
|