mirror of https://github.com/mpv-player/mpv
Move the logic that decides if untranslated messages need to be added to
help_mp.h into the helper script that generates those messages. git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@26832 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
parent
955495414e
commit
5f7c758c80
3
Makefile
3
Makefile
|
@ -771,11 +771,8 @@ else
|
||||||
iconv -f UTF-8 -t $(CHARSET) "$(HELP_FILE)" >> help_mp.h
|
iconv -f UTF-8 -t $(CHARSET) "$(HELP_FILE)" >> help_mp.h
|
||||||
endif
|
endif
|
||||||
@echo '#endif /* MPLAYER_HELP_MP_H */' >> help_mp.h
|
@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
|
@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
|
@help/help_diff.sh $(HELP_FILE) < help/help_mp-en.h >> help_mp.h
|
||||||
endif
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -6,6 +6,9 @@
|
||||||
#
|
#
|
||||||
# Example: help_diff.sh help_mp-hu.h < help_mp-en.h > missing.h
|
# 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=""
|
curr=""
|
||||||
|
|
||||||
while read -r line; do
|
while read -r line; do
|
||||||
|
|
Loading…
Reference in New Issue