~ubuntu-branches/ubuntu/precise/kbibtex/precise

« back to all changes in this revision

Viewing changes to po/messages.sh

  • Committer: Package Import Robot
  • Author(s): Michael Hanke
  • Date: 2011-07-18 09:29:48 UTC
  • mfrom: (1.1.6) (2.1.5 sid)
  • Revision ID: package-import@ubuntu.com-20110718092948-ksxjmg7kdfamolmg
Tags: 0.3-1
* First upstream release for KDE4 (Closes: #634255). A number of search
  engines are still missing, in comparison to the 0.2 series.
* Bumped Standards-Version to 3.9.2, no changes necessary.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
#!/bin/sh
2
 
 
3
 
export PATH="/usr/kde/3.5/bin/${PATH/kde\/4.2/kde/3.5}"
4
 
 
5
 
if [ -z "$1" ] ; then
6
 
        msgmergebin=`which msgmerge`
7
 
elif [ -x "$1" ] ; then
8
 
        msgmergebin="$1"
9
 
else
10
 
        echo "The given parameter does not point to an executable file" >&2
11
 
        exit 2
12
 
fi
13
 
 
14
 
$msgmergebin --version |grep -q 0.10.35 || { echo "The provided msgmerge binary is most likely a non-KDE version." >&2 ; echo "Please provide the patched version as a parameter for this script." >&2 ; exit 1 ; }
15
 
echo $msgmergebin
16
 
$msgmergebin --version
17
 
 
18
 
PROJECT=kbibtex
19
 
 
20
 
cd .. ; make -f admin/Makefile.common package-messages ; cd po
21
 
 
22
 
catalogs=`find . -name '*.po'`
23
 
for cat in $catalogs; do
24
 
  echo $cat
25
 
  $msgmergebin -o $cat.new $cat ${PROJECT}.pot && mv $cat.new $cat
26
 
done
27
 
 
28
 
echo "Done"