File: update-tl.sh

package info (click to toggle)
gnome-shell-extension-tiling-assistant 53-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 1,548 kB
  • sloc: javascript: 7,577; xml: 266; sh: 93; makefile: 40
file content (26 lines) | stat: -rwxr-xr-x 661 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
#!/bin/bash

# exit, if a command fails
set -e

# cd to repo dir
SCRIPT_DIR="$( cd "$( dirname "$0" )" && pwd )"
cd "$SCRIPT_DIR"/../

# update main.pot
echo -n Updating \'translations/main.pot\'
xgettext \
    --from-code=UTF-8 \
    --output=translations/main.pot \
    --add-comments='Translators:' \
    ./tiling-assistant@leleat-on-github/*/*/*.ui \
    ./tiling-assistant@leleat-on-github/*.js \
    ./tiling-assistant@leleat-on-github/*/*.js \
    ./tiling-assistant@leleat-on-github/*/*/*.js
echo \ ......... done.

# update .po files
for FILE in translations/*.po; do
    echo -n "Updating '$FILE' "
    msgmerge -NU "$FILE" translations/main.pot
done