[Pkg-mozext-commits] [perspectives-extension] 02/24: Makefile - Remove old localization perl script; add python script
David Prévot
taffit at moszumanska.debian.org
Sat May 3 02:44:28 UTC 2014
This is an automated email from the git hooks/post-receive script.
taffit pushed a commit to branch debian
in repository perspectives-extension.
commit 2f8edf6ef3ad7af17ebebd40e0ceb85ca5d7d4d9
Author: Dave Schaefer <dave.schaefer at gmail.com>
Date: Thu Apr 24 22:38:50 2014 -0600
Makefile - Remove old localization perl script; add python script
Run localization tests as part of the build
---
Makefile | 15 ++++++---------
1 file changed, 6 insertions(+), 9 deletions(-)
diff --git a/Makefile b/Makefile
index c19da2d..ebe2790 100644
--- a/Makefile
+++ b/Makefile
@@ -7,7 +7,7 @@ unittest_dest = $(unittest_dest_folder)/$(unittest_file)
.PHONY: plugin
-plugin: clean dtds setup
+plugin: clean loctests setup
sh -c "cd $(buildfolder)/ && zip -q -r ../$(outfile) * -x *\.svn*"
rm -rf $(buildfolder)
@@ -17,17 +17,14 @@ clean:
rm -f $(outfile)
rm -rf $(buildfolder)/
-dtds:
- @# remove invalid entity characters as part of the build
- @# 1. we never have to remember to run this step manually
- @# 2. this ensures the plugin won't crash
- @echo Checking for perl...
+loctests:
+ @# ensure localization files are valid.
@# note: the next few lines use spaces instead of tabs for indentation
@# just to keep them nicely formatted with the actual commands
- ifeq ($(shell command -v perl ; echo $$?),1)
- @echo -e " perl not installed; skipping DTD tests.\n WARNING: Invalid DTDs may prevent Perspectives from working.\n Install perl to enable dtd validation."
+ ifeq ($(shell command -v python ; echo $$?),1)
+ @echo -e " python not installed; skipping localization tests.\n WARNING: Invalid localization files may prevent Perspectives from working.\n Install python to enable localization validation."
else
- find ./plugin/chrome/locale/ -name "*.dtd" | xargs perl -w checkdtds.pl
+ python test/checkloc.py ../plugin/chrome/locale/
endif
setup:
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-mozext/perspectives-extension.git
More information about the Pkg-mozext-commits
mailing list