forked from openSUSE/kdebase-opensuse
-
Notifications
You must be signed in to change notification settings - Fork 0
/
update_rpm
executable file
·38 lines (35 loc) · 1.06 KB
/
update_rpm
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
31
32
33
34
35
36
37
38
#! /bin/sh
opwd=$PWD
tdir=`mktemp -d`
cd $tdir || exit 1
if test -d "$MY_KDEBASE4_OPENSUSE_CHECKOUT"; then
cp -aR "$MY_KDEBASE4_OPENSUSE_CHECKOUT" kdebase4-openSUSE
pushd kdebase4-openSUSE
git checkout -f master
git pull || exit 1
git clean -x -d -f
popd
else
git clone git://github.com/openSUSE/kdebase-opensuse.git || exit 1
mv kdebase-opensuse kdebase4-openSUSE
fi
rm -rf kdebase4-openSUSE/.git
#svn export svn://anonsvn.kde.org/home/kde/trunk/playground/base/kio_sysinfo kdebase4-openSUSE/sysinfo/kio_sysinfo || exit 1
if test -d "$MY_LCN_CHECKOUT"; then
echo "Updating $MY_LCN_CHECKOUT"
svn up $MY_LCN_CHECKOUT || exit 1
else
echo "No \$MY_LCN_CHECKOUT set, will checkout temporarly"
svn export https://svn.berlios.de/svnroot/repos/opensuse-i18n/trunk/lcn || exit 1
export MY_LCN_CHECKOUT=$PWD/lcn
fi
pushd kdebase4-openSUSE/po
./fill_po.sh
popd
# remove non-released stuff
for f in update_rpm totranslate/*.sh; do
rm kdebase4-openSUSE/$f
done
tar -cvj -f $opwd/kdebase4-openSUSE-12.3.tar.bz2 kdebase4-openSUSE
cd /
rm -rf $tdir