packages: js-syntaxhighlighter/js-syntaxhighlighter.spec - check for syntax...

glen glen at pld-linux.org
Wed May 5 13:40:46 CEST 2010


Author: glen                         Date: Wed May  5 11:40:46 2010 GMT
Module: packages                      Tag: HEAD
---- Log message:
- check for syntax errors on js files as well

---- Files affected:
packages/js-syntaxhighlighter:
   js-syntaxhighlighter.spec (1.5 -> 1.6) 

---- Diffs:

================================================================
Index: packages/js-syntaxhighlighter/js-syntaxhighlighter.spec
diff -u packages/js-syntaxhighlighter/js-syntaxhighlighter.spec:1.5 packages/js-syntaxhighlighter/js-syntaxhighlighter.spec:1.6
--- packages/js-syntaxhighlighter/js-syntaxhighlighter.spec:1.5	Tue May  4 00:24:11 2010
+++ packages/js-syntaxhighlighter/js-syntaxhighlighter.spec	Wed May  5 13:40:41 2010
@@ -11,6 +11,7 @@
 Source0:	http://execve.pl/PLD/%{name}-%{version}.zip
 # Source0-md5:	839d77b07b80e56965ebcfaf2a1186be
 URL:		http://alexgorbatchev.com/wiki/SyntaxHighlighter
+BuildRequires:	js
 BuildRequires:	unzip
 BuildRequires:	yuicompressor
 Requires:	webapps
@@ -52,8 +53,12 @@
 cp -a scripts styles build
 
 %build
-for I in scripts/*.js styles/*.css; do
-	yuicompressor $I > build/$I
+for a in styles/*.css; do
+	yuicompressor $a > build/$a
+done
+for a in scripts/*.js; do
+	yuicompressor --charset UTF-8 $a > build/$a
+	js -C -f build/$a
 done
 
 %install
@@ -102,6 +107,9 @@
 All persons listed below can be reached at <cvs_login>@pld-linux.org
 
 $Log$
+Revision 1.6  2010/05/05 11:40:41  glen
+- check for syntax errors on js files as well
+
 Revision 1.5  2010/05/03 22:24:11  pawelz
 - rel 2
 
================================================================

---- CVS-web:
    http://cvs.pld-linux.org/cgi-bin/cvsweb.cgi/packages/js-syntaxhighlighter/js-syntaxhighlighter.spec?r1=1.5&r2=1.6&f=u



More information about the pld-cvs-commit mailing list