Project Info Name.......: gnu-hello
Description: GNU Hello


gnu-hello       
Info
Commit...:ac8d70247b841d0c4cacde7715831c32521f5aff
Author...:karl <>
Committer:karl <>
Date.....:Thu Nov 23 15:00:41 2006 +0000
Parents..:d5ad384e8e38b255011dc822f64be0485eb1b3e7

Message
[project @ 2006-11-23 15:00:41 by karl]
po-check

Changes
diff --git a/Makefile.am b/Makefile.am
line changes: +27/-0
index fa1a35f..31ab071
--- a/Makefile.am
+++ b/Makefile.am
@@ -55,3 +55,30 @@ diffcheck:
                 fi ; \
 	    fi ; \
 	done
+
+# From coreutils.
+# Verify that all source files using _() are listed in po/POTFILES.in.
+# The idea is to run this before making pretests, as well as official
+# releases, so that 
+po-check:
+	if test -f po/POTFILES.in; then					\
+	  grep -E -v '^(#|$$)' po/POTFILES.in				\
+	    | grep -v '^src/false\.c$$' | sort > $@-1;			\
+	  files=;							\
+	  for file in $$($(CVS_LIST_EXCEPT)) `find * -name '*.[ch]'`; do \
+	    case $$file in						\
+	    djgpp/* | man/*) continue;;					\
+	    esac;							\
+	    case $$file in						\
+	    *.[ch])							\
+	      base=`expr " $$file" : ' \(.*\)\..'`;			\
+	      { test -f $$base.l || test -f $$base.y; } && continue;;	\
+	    esac;							\
+	    files="$$files $$file";					\
+	  done;								\
+	  grep -E -l '\b(N?_|gettext *)\([^)"]*("|$$)' $$files		\
+	    | sort -u > $@-2;						\
+	  diff -u $@-1 $@-2 || exit 1;					\
+	  rm -f $@-1 $@-2;						\
+	fi
+

This website is licensed under AGPL-3.0. Feel free to copy!