11.2 branch of kio_sysinfo
[opensuse:kdebase4-opensuse.git] / update_rpm
1 #! /bin/sh
2
3 opwd=$PWD
4 tdir=`mktemp -d`
5 cd $tdir || exit 1
6 if test -d "$MY_KDEBASE4_OPENSUSE_CHECKOUT"; then
7     cp -aR "$MY_KDEBASE4_OPENSUSE_CHECKOUT" kdebase4-openSUSE
8     pushd kdebase4-openSUSE
9     git branch openSUSE_11_2_BRANCH origin/openSUSE_11_2_BRANCH
10     git checkout -f openSUSE_11_2_BRANCH
11     git pull
12     git clean -x -d -f
13     popd
14 else
15     git clone git://gitorious.org/opensuse/kdebase4-opensuse.git
16     mv kdebase4-opensuse kdebase4-openSUSE
17     pushd kdebase4-openSUSE
18     git branch openSUSE_11_2_BRANCH origin/openSUSE_11_2_BRANCH
19     git checkout -f openSUSE_11_2_BRANCH
20     popd
21 fi
22 rm -rf kdebase4-openSUSE/.git
23 svn export svn://anonsvn.kde.org/home/kde/branches/opensuse/11.2/kio_sysinfo kdebase4-openSUSE/sysinfo/kio_sysinfo
24 if test -d "$MY_LCN_CHECKOUT"; then
25   echo "Updating $MY_LCN_CHECKOUT"
26   svn up $MY_LCN_CHECKOUT
27 else
28   echo "No \$MY_LCN_CHECKOUT set, will checkout temporarly"
29   svn export https://forgesvn1.novell.com/svn/suse-i18n/trunk/lcn
30   export MY_LCN_CHECKOUT=$PWD/lcn
31 fi
32 pushd kdebase4-openSUSE/po
33 ./fill_po.sh
34 popd
35
36 # remove non-released stuff
37 for f in update_rpm totranslate/*.sh; do
38     rm kdebase4-openSUSE/$f
39 done
40
41 tar -cvj -f $opwd/kdebase4-openSUSE-11.2.tar.bz2 kdebase4-openSUSE
42 cd /
43 rm -rf $tdir