blob: 6d39e755b273e403b90ab6eb1bbc49834a8df4af (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
|
#!/bin/sh
# This script was used to extract the kdepim part from the last kde-l10n
# release that contained them. The resulting kdepim-l10n sources will be
# merged into our language packages.
# This should be run in the directory containing the kde-l10n-*-4.4.5
# source tarballs that you wish to create kdepim-l10n archives from.
for file in kde-l10n*.tar.bz2 ; do
rm -rf $(basename $file .tar.bz2) kdepim-l10n-$(echo $file | cut -f 3 -d -)-4.4.5
echo "Extracting $file"
tar xf $file
mkdir kdepim-l10n-$(echo $file | cut -f 3 -d -)-4.4.5
( cd $(basename $file .tar.bz2)
find . -name "kdepim" -type d -exec cp -a --parents "{}" ../kdepim-l10n-$(echo $file | cut -f 3 -d -)-4.4.5 \;
)
( cd kdepim-l10n-$(echo $file | cut -f 3 -d -)-4.4.5
tar cf ../kdepim-l10n-$(echo $file | cut -f 3 -d -)-4.4.5.tar .
)
rm -f kdepim-l10n-$(echo $file | cut -f 3 -d -)-4.4.5.tar.bz2
bzip2 -9 kdepim-l10n-$(echo $file | cut -f 3 -d -)-4.4.5.tar
rm -r $(basename $file .tar.bz2) kdepim-l10n-$(echo $file | cut -f 3 -d -)-4.4.5
done
|