File: stringmerge

package info (click to toggle)
pgadmin3 1.20.0~beta2-1
  • links: PTS, VCS
  • area: main
  • in suites: jessie, jessie-kfreebsd
  • size: 73,704 kB
  • ctags: 18,591
  • sloc: cpp: 193,786; ansic: 18,736; sh: 5,154; pascal: 1,120; yacc: 927; makefile: 516; lex: 421; xml: 126; perl: 40
file content (31 lines) | stat: -rwxr-xr-x 915 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
27
28
29
30
31
#!/bin/sh

#######################################################################
#
# pgAdmin III - PostgreSQL Tools
# Copyright (C) 2002 - 2009, The pgAdmin Development Team
# This software is released under the PostgreSQL Licence
#
# stringmerge - merge pgadmin3.pot template file into existing pgadmin3.po
# translated files, compile and publish them on CVS.
#
# Same as 'Update from .pot' feature of poEdit.
#
#######################################################################

if test -f pgadmin3.pot; then

  git pull
  for GETTEXTDIR in i18n/??_?? ; do
  	echo "Entering $GETTEXTDIR."
    cd $GETTEXTDIR
    echo "Updating from SVN."
    echo "Merging pgadmin3.pot into pgadmin3.po"
    msgmerge --update pgadmin3.po ../../pgadmin3.pot
    git add pgadmin3.po pgadmin3.mo
    cd ../..
  done
  cd i18n
  echo "Committing changes to SVN."
  git commit -m "Automatic merge using stringmerge script." 
fi