Revision: 7240
http://languagetool.svn.sourceforge.net/languagetool/?rev=7240&view=rev
Author: milek_pl
Date: 2012-06-05 10:16:39 +0000 (Tue, 05 Jun 2012)
Log Message:
-----------
add a script to double-check versions of Windows DLLs
Added Paths:
-----------
trunk/JLanguageTool/src/dev/tools/VersionInfo.js
Removed Paths:
-------------
trunk/JLanguageTool/src/dev/tools/VersionInfo.vbs
Added: trunk/JLanguageTool/src/dev/tools/VersionInfo.js
===================================================================
--- trunk/JLanguageTool/src/dev/tools/VersionInfo.js
(rev 0)
+++ trunk/JLanguageTool/src/dev/tools/VersionInfo.js 2012-06-05 10:16:39 UTC
(rev 7240)
@@ -0,0 +1,36 @@
+/* LanguageTool, a natural language style checker
+ * Copyright (C) 2012 Marcin MiĆkowski (http://www.languagetool.org)
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License as published by the Free Software Foundation; either
+ * version 2.1 of the License, or (at your option) any later version.
+ *
+ * This library is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this library; if not, write to the Free Software
+ * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301
+ * USA
+ */
+
+
+/**
+ * Script to check versions of Windows DLLs, should be called during
+ * Windows ANT test...
+ */
+
+var fso = WScript.CreateObject("Scripting.FileSystemObject");
+
+var version1 =
fso.GetFileVersion("../../../libs/native-lib/hunspell-win-x86-64.dll");
+var version2 =
fso.GetFileVersion("../../../libs/native-lib/hunspell-win-x86-32.dll");
+
+if (version1 != version2) {
+ WScript.Echo("Error: version mismatch: " + version1 + " != " +
version2);
+ WScript.Quit(-1);
+}
+
+WScript.Quit();
\ No newline at end of file
Property changes on: trunk/JLanguageTool/src/dev/tools/VersionInfo.js
___________________________________________________________________
Added: svn:mime-type
+ text/plain
Deleted: trunk/JLanguageTool/src/dev/tools/VersionInfo.vbs
===================================================================
--- trunk/JLanguageTool/src/dev/tools/VersionInfo.vbs 2012-06-05 09:15:30 UTC
(rev 7239)
+++ trunk/JLanguageTool/src/dev/tools/VersionInfo.vbs 2012-06-05 10:16:39 UTC
(rev 7240)
@@ -1,4 +0,0 @@
-set args = WScript.Arguments
-Set fso = CreateObject("Scripting.FileSystemObject")
-WScript.Echo fso.GetFileVersion(args(0))
-Wscript.Quit
\ No newline at end of file
This was sent by the SourceForge.net collaborative development platform, the
world's largest Open Source development site.
------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and
threat landscape has changed and how IT managers can respond. Discussions
will include endpoint security, mobile security and the latest in malware
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
Languagetool-cvs mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/languagetool-cvs