~ubuntu-branches/ubuntu/trusty/ldm/trusty-proposed

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
#!/bin/sh

# regenerate the .pot file with appropriate values substituted for package
# name, description and version.

set -e

cd ..
# get name and version values
. release.conf
cd -

pot=$NAME.pot
rm $pot
make $pot

sed -i -e "s,SOME DESCRIPTIVE TITLE.,$NAME gettext messages for LANGUAGE.,g" \
    -i -e "s,PACKAGE ,$NAME ,g" \
    -i -e "s,VERSION,$VERSION,g" \
    $pot