changeset 26800:3ff3bd9bf0f9

Move the logic that decides if untranslated messages need to be added to help_mp.h into the helper script that generates those messages.
author diego
date Sun, 18 May 2008 23:33:46 +0000
parents 06fa17a9ee01
children 4b76560a933f
files Makefile help/help_diff.sh
diffstat 2 files changed, 3 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/Makefile	Sun May 18 23:16:30 2008 +0000
+++ b/Makefile	Sun May 18 23:33:46 2008 +0000
@@ -771,11 +771,8 @@
 	iconv -f UTF-8 -t $(CHARSET) "$(HELP_FILE)" >> help_mp.h
 endif
 	@echo '#endif /* MPLAYER_HELP_MP_H */' >> help_mp.h
-
-ifneq ($(HELP_FILE),help/help_mp-en.h)
 	@echo '// untranslated messages from the English master file:' >> help_mp.h
 	@help/help_diff.sh $(HELP_FILE) < help/help_mp-en.h >> help_mp.h
-endif
 
 
 
--- a/help/help_diff.sh	Sun May 18 23:16:30 2008 +0000
+++ b/help/help_diff.sh	Sun May 18 23:33:46 2008 +0000
@@ -6,6 +6,9 @@
 #
 # Example: help_diff.sh help_mp-hu.h < help_mp-en.h > missing.h
 
+# Processing the master file, nothing to do.
+test $1 = "help/help_mp-en.h" && exit 0
+
 curr=""
 
 while read -r line; do