File: Messages.sh

package info (click to toggle)
kalzium 4:17.08.3-1
  • links: PTS, VCS
  • area: main
  • in suites: buster
  • size: 56,876 kB
  • sloc: xml: 20,671; cpp: 16,953; ml: 799; makefile: 65; ansic: 32; sh: 21
file content (15 lines) | stat: -rw-r--r-- 796 bytes parent folder | download | duplicates (5)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
#! /bin/sh
$EXTRACTRC `find src -name \*.ui` src/*.rc src/*.kcfg >> rc.cpp || exit 11
$EXTRACTRC --tag-group=none --tag=name --tag=desc --tag=refitem data/knowledge.xml >> rc.cpp || exit 14
$EXTRACTRC --tag-group=none --tag=name --tag=desc data/tools.xml >> rc.cpp || exit 15

# extracting a reduced version of the elements.xml, with only the data we want
echo "<?xml version=\"1.0\" ?><tmp>" > element_tiny.xml
cat libscience/data/elements.xml | grep 'bo:name' >> element_tiny.xml
echo "</tmp>" >> element_tiny.xml
$EXTRACTATTR --attr=label,value element_tiny.xml >> rc.cpp
$EXTRACTRC --tag-group=none --tag=scalar element_tiny.xml >> rc.cpp

$XGETTEXT rc.cpp compoundviewer/*.cpp libscience/*.cpp `find src -name \*.cpp | grep -v 'src/conversion'` -o $podir/kalzium.pot

rm -f element_tiny.xml