~ubuntu-branches/ubuntu/precise/kalzium/precise

« back to all changes in this revision

Viewing changes to Messages.sh

  • Committer: Bazaar Package Importer
  • Author(s): Philip Muškovac
  • Date: 2011-07-03 12:28:58 UTC
  • Revision ID: james.westby@ubuntu.com-20110703122858-q1yyxncs89e4w0hs
Tags: upstream-4.6.90+repack
Import upstream version 4.6.90+repack

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#! /bin/sh
 
2
$EXTRACTRC `find src -name \*.ui` src/*.rc src/*.kcfg >> rc.cpp || exit 11
 
3
$EXTRACTRC --tag-group=none --tag=name --tag=desc --tag=refitem data/knowledge.xml >> rc.cpp || exit 14
 
4
$EXTRACTRC --tag-group=none --tag=name --tag=desc data/tools.xml >> rc.cpp || exit 15
 
5
 
 
6
# extracting a reduced version of the elements.xml, with only the data we want
 
7
echo "<?xml version=\"1.0\" ?><tmp>" > element_tiny.xml
 
8
cat libscience/data/elements.xml | grep 'bo:name' >> element_tiny.xml
 
9
echo "</tmp>" >> element_tiny.xml
 
10
$EXTRACTATTR --attr=label,value element_tiny.xml >> rc.cpp
 
11
$EXTRACTRC --tag-group=none --tag=scalar element_tiny.xml >> rc.cpp
 
12
 
 
13
$XGETTEXT rc.cpp compoundviewer/*.cpp libscience/*.cpp `find src -name \*.cpp | grep -v 'src/conversion'` -o $podir/kalzium.pot
 
14
 
 
15
rm -f element_tiny.xml