Commits

Michael[tm] Smith  committed 77755bb

Include readme files in vnu.jar distro.

  • Participants
  • Parent commits 7300c10

Comments (0)

Files changed (2)

   runCmd('"%s" -cp %s org.apache.tools.ant.Main -f %s'
     % (javaCmd, classPath, os.path.join(buildRoot, "build", "build.xml")))
   version = subprocess.check_output([javaCmd, "-jar", os.path.join(distDir, "vnu.jar"), "--version"]).rstrip()
+  readmeHtml = "https://raw.github.com/validator/validator.github.io/master/index.html"
+  readmeMarkdown = "https://raw.github.com/validator/validator.github.io/master/README.md"
+  fetchUrlTo(readmeHtml, os.path.join(distDir, "index.html"))
+  fetchUrlTo(readmeMarkdown, os.path.join(distDir, "README.md"))
   os.chdir("build")
   distroFile = os.path.join("vnu-" + version + ".zip")
   removeIfExists(distroFile)
   shutil.copyfile(os.path.join(buildRoot, "validator", "site", "script.js"), os.path.join(filesDir, "script.js"))
   shutil.copyfile(os.path.join(buildRoot, "validator", "site", "icon.png"), os.path.join(filesDir, "icon.png"))
   shutil.copyfile(os.path.join(buildRoot, "validator", "site", "language-subtag-registry"), os.path.join(filesDir, "language-subtag-registry"))
+  shutil.copyfile(os.path.join(buildRoot, "validator", "src", "nu", "validator", "client", "cli-help"), os.path.join(filesDir, "cli-help"))
   shutil.copyfile(os.path.join(buildRoot, "nu-validator-site", "w3c-presets.txt"), os.path.join(filesDir, "presets"))
   shutil.copyfile(os.path.join(buildRoot, "nu-validator-site", "style.css"), os.path.join(w3cFilesDir, "style.css"))
   shutil.copyfile(os.path.join(buildRoot, "nu-validator-site", "script.js"), os.path.join(w3cFilesDir, "script.js"))
   <target name="clean">
     <delete file="./vnu/vnu.jar"/>
   </target>
-  <target name="dist" depends="jar, credits, readme"/>
+  <target name="dist" depends="jar, credits"/>
   <target name="jar">
     <jar destfile="./vnu/vnu.jar" duplicate="preserve">
       <zipgroupfileset dir="../jars" includes="*.jar"/>
 ***************************************************************************
 </echo>
   </target>
-  <target name="readme">
-    <echo file="./vnu/README" append="true">Usage:
-
-  java -jar vnu.jar [--html] [--entities] [--schema URL]
-      [--format gnu|xml|json|text] [--verbose] [--version] FILES
-
-To validate one or more documents from the command line:
-
-  java -jar vnu.jar FILE.html FILE2.html FILE3.HTML FILE4.html...
-
-To validate all HTML documents in a particular directory:
-
-  java -jar vnu.jar some-directory-name/
-
-To validate a Web document:
-
-  java -jar vnu.jar http://example.com/foo
-
-Other usage:
-
-To start the validator as an HTTP service on port 8888:
-
-  java -cp vnu.jar nu.validator.servlet.Main 8888
-
-To validate one or more documents with a running instance of
-the validator HTTP service:
-
-  java -cp vnu.jar nu.validator.client.HttpClient FILE.html...
-</echo>
-  </target>
 </project>