summaryrefslogtreecommitdiffabout
authorSergey Poznyakoff <gray@gnu.org.ua>2011-08-18 19:45:34 (GMT)
committer Sergey Poznyakoff <gray@gnu.org.ua>2011-08-18 19:45:34 (GMT)
commit51c2a16f2d3658672421892e2c3405c6ed74c490 (patch) (side-by-side diff)
treed85dc7296a76d90f32862540dffa614f03df033a
parent9fd45622e2cda584e13bf1d3f08960d4fead3c0d (diff)
downloadgdbm-51c2a16f2d3658672421892e2c3405c6ed74c490.tar.gz
gdbm-51c2a16f2d3658672421892e2c3405c6ed74c490.tar.bz2
Get po files.
* bootstrap: Get PO files; create LINGUAS list * po/.cvsignore: Add LINGUAS.
Diffstat (more/less context) (ignore whitespace changes)
-rw-r--r--ChangeLog5
-rwxr-xr-xbootstrap42
-rw-r--r--po/.cvsignore1
3 files changed, 48 insertions, 0 deletions
diff --git a/ChangeLog b/ChangeLog
index d3bd1d8..a2f501f 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2011-08-18 Sergey Poznyakoff <gray@gnu.org.ua>
+
+ * bootstrap: Get PO files; create LINGUAS list
+ * po/.cvsignore: Add LINGUAS.
+
2011-08-17 Sergey Poznyakoff <gray@gnu.org.ua>
Make sure errno is preserved, if it can contain details about the
diff --git a/bootstrap b/bootstrap
index 63ef2a0..e4211e4 100755
--- a/bootstrap
+++ b/bootstrap
@@ -1,6 +1,46 @@
#! /bin/sh
+# Copyright (C) 2011 Free Software Foundation, Inc.
+#
+# GDBM is free software; you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation; either version 3, or (at your option)
+# any later version.
+#
+# GDBM is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with GDBM. If not, see <http://www.gnu.org/licenses/>. */
+
force=0
+refdir=po/.reference
+
+get_po() {
+ test -d $refdir || mkdir $refdir
+ # Get PO files.
+ rsync --delete -Lrtvz translationproject.org::tp/latest/gdbm/ $refdir
+ langs=`cd $refdir && ls *.po | sed 's/\.po$//' | sort`
+ if test "$langs" != '*'; then
+ for lang in $langs
+ do
+ if test -f po/$lang.po && cmp po/$lang.po $refdir/$lang.po
+ then
+ :
+ else
+ cp $refdir/$lang.po po
+ fi
+ done
+ fi
+ # Create LINGUAS
+ (echo "# This file is generated automatically; don't edit"
+ ls po/*.po 2>/dev/null | sed 's^.*/^^;s/\.po$//' | sort) > po/LINGUAS
+}
+
+################
+
if test $# -eq 0; then
:;
elif test $# -eq 1; then
@@ -25,5 +65,7 @@ if ! test -f README-hacking && test $force -eq 0; then
exit 1
fi
+get_po
+
test -d m4 || mkdir m4
autoreconf -f -i -s \ No newline at end of file
diff --git a/po/.cvsignore b/po/.cvsignore
index 6c366a5..d0e89c4 100644
--- a/po/.cvsignore
+++ b/po/.cvsignore
@@ -2,6 +2,7 @@
*.mo
*.po
.reference
+LINGUAS
Makefile
Makefile.in
Makefile.in.in

Return to:

Send suggestions and report system problems to the System administrator.