[sysadmin-bin: 75/168] Look for gettext-0.17 tools and use msgfmt -c



commit f7b330122f231ce2cd31019bb0224083498d32bc
Author: Owen W. Taylor <otaylor fishsoup net>
Date:   Mon Apr 6 15:37:22 2009 -0400

    Look for gettext-0.17 tools and use msgfmt -c
    
    Use a statically linked version of the gettext tools in
    /usr/libexec/gettext17; this allows us to re-enable msgfmt -c

 pre-receive-check-po |   10 ++++++----
 1 files changed, 6 insertions(+), 4 deletions(-)
---
diff --git a/pre-receive-check-po b/pre-receive-check-po
index 373dbe1..71db5d8 100755
--- a/pre-receive-check-po
+++ b/pre-receive-check-po
@@ -15,10 +15,9 @@ check_po() {
 
     basename=`basename $path`
 
-    # gettext-0.14.6 on git.gnome.org isn't new enough to handle
-    # features such as msgctx
-    # dash_c="-c"
-    dash_c=
+    # Perform extensive tests. This could be disabled if GNOME .po
+    # files used newer features than those available on git.gnome.org.
+    dash_c="-c"
 
     # Parse the file and check for errors
     result=`git cat-file blob "$rev:$path" | msgfmt $dash_c -o /dev/null - 2>&1`
@@ -122,6 +121,9 @@ check_pos() {
 
 }
 
+# Use a newer version of the gettext tools than the ones shipped with RHEL 5
+PATH=/usr/libexec/gettext17:$PATH
+
 GIT_DIR=$(git rev-parse --git-dir 2>/dev/null)
 
 # Don't check .po's during import; we don't want to enforce correct



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]