File: revert_pot

package info (click to toggle)
installation-guide 20070319
  • links: PTS
  • area: main
  • in suites: etch, etch-m68k
  • size: 29,356 kB
  • ctags: 53
  • sloc: xml: 184,383; sh: 1,023; perl: 403; awk: 200; makefile: 65
file content (15 lines) | stat: -rwxr-xr-x 360 bytes parent folder | download | duplicates (7)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
#!/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)..."
for POT in $(svn st $POTDIR | grep "^M" | sed "s/^M[[:space:]]*//"); do
    svn revert $POT
done
echo "done."