File: revert_pot

package info (click to toggle)
installation-guide 20190622
  • links: PTS, VCS
  • area: main
  • in suites: buster
  • size: 36,344 kB
  • sloc: xml: 45,741; sh: 1,283; perl: 427; awk: 199; makefile: 118; python: 101
file content (13 lines) | stat: -rwxr-xr-x 293 bytes parent folder | download | duplicates (5)
1
2
3
4
5
6
7
8
9
10
11
12
13
#!/bin/sh

# Reverts local changes in POT files.
# Translators are normally not supposed to commit any changes to POT
# files after they've run update_pot.

POTDIR="./po/pot"

[ -d $POTDIR ] || exit 1

echo "Reverting modified POT files (if any)..."
git checkout -- $POTDIR/*.pot
echo "done."