File: update-tl.sh

package info (click to toggle)
gnome-shell-extension-tiling-assistant 39-1
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 13,376 kB
  • sloc: javascript: 5,497; xml: 263; sh: 103; makefile: 11
file content (22 lines) | stat: -rw-r--r-- 477 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
#!/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 \
    ./*/*/*/*.ui ./*/*.js ./*/*/*.js ./*/*/*/*.js
echo \ ......... done.

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