Commit 93f3c135 authored by Derk-Jan Hartman's avatar Derk-Jan Hartman

* added a package-translations target

  - holds doc/translations.txt
  - all the .po's
  - convert-po.sh
parent 6051a4ee
...@@ -467,6 +467,8 @@ VLC.app: vlc ...@@ -467,6 +467,8 @@ VLC.app: vlc
output.m \ output.m \
playlist.h \ playlist.h \
playlist.m \ playlist.m \
prefs_widgets.h \
prefs_widgets.m \
prefs.h \ prefs.h \
prefs.m \ prefs.m \
vout.h \ vout.h \
...@@ -686,6 +688,34 @@ package-macosx: ...@@ -686,6 +688,34 @@ package-macosx:
# Clean up # Clean up
rm -Rf $(top_builddir)/tmp rm -Rf $(top_builddir)/tmp
package-translations:
@if test -e "$(srcdir)/vlc-translations-${VERSION}"; then \
echo "Error: please remove $(srcdir)/vlc-translations-${VERSION}, it is in the way"; \
false; \
else \
echo "OK."; mkdir -p "$(srcdir)/vlc-translations-${VERSION}"; \
fi
# Copy translations
for i in $(ALL_LINGUAS); do \
cp "$(srcdir)/po/$${i}.po" \
"$(srcdir)/vlc-translations-${VERSION}/$${i}.po" \
|| true ; \
done
cp "$(srcdir)/doc/translations.txt" \
"$(srcdir)/vlc-translations-${VERSION}/README.txt"
echo "#!/bin/sh" >>"$(srcdir)/vlc-translations-$(VERSION)/convert.po.sh"
echo "" >>"$(srcdir)/vlc-translations-$(VERSION)/convert.po.sh"
echo 'if test $$# != 1; then' >>"$(srcdir)/vlc-translations-$(VERSION)/convert.po.sh"
echo " echo \"Usage: convert-po.sh <.po file>\"" >>"$(srcdir)/vlc-translations-$(VERSION)/convert.po.sh"
echo " exit 1" >>"$(srcdir)/vlc-translations-$(VERSION)/convert.po.sh"
echo "fi" >>"$(srcdir)/vlc-translations-$(VERSION)/convert.po.sh"
echo "" >>"$(srcdir)/vlc-translations-$(VERSION)/convert.po.sh"
echo 'msgfmt --statistics -o vlc.mo $$1' >>"$(srcdir)/vlc-translations-$(VERSION)/convert.po.sh"
$(AMTAR) chof - $(srcdir)/vlc-translations-$(VERSION) \
| GZIP=$(GZIP_ENV) gzip -c >$(srcdir)/vlc-translations-$(VERSION).tar.gz
############################################################################### ###############################################################################
# Stamp rules # Stamp rules
############################################################################### ###############################################################################
......
...@@ -32,5 +32,7 @@ EXTRA_DIST = \ ...@@ -32,5 +32,7 @@ EXTRA_DIST = \
skins/skins-howto.txt \ skins/skins-howto.txt \
skins/events-howto.txt \ skins/events-howto.txt \
skins/curve_maker \ skins/curve_maker \
strings.txt \
translations.txt \
win32/Cross-Compile-Howto.txt \ win32/Cross-Compile-Howto.txt \
$(NULL) $(NULL)
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment