mirror of
https://github.com/roytam1/UXP.git
synced 2026-05-26 23:18:26 +00:00
Remove HTML5 parser java docs and generation code.
java->C++ automated translation is not something we want to deal with now or in the future.
This commit is contained in:
@@ -1,59 +0,0 @@
|
||||
# This Source Code Form is subject to the terms of the Mozilla Public
|
||||
# License, v. 2.0. If a copy of the MPL was not distributed with this
|
||||
# file, You can obtain one at http://mozilla.org/MPL/2.0/.
|
||||
|
||||
libs:: translator
|
||||
|
||||
translator:: javaparser \
|
||||
; mkdir -p htmlparser/bin && \
|
||||
find htmlparser/translator-src/nu/validator/htmlparser -name "*.java" | \
|
||||
xargs javac -cp javaparser.jar -g -d htmlparser/bin && \
|
||||
jar cfm translator.jar manifest.txt -C htmlparser/bin .
|
||||
|
||||
javaparser:: \
|
||||
; mkdir -p javaparser/bin && \
|
||||
find javaparser/src -name "*.java" | \
|
||||
xargs javac -encoding ISO-8859-1 -g -d javaparser/bin && \
|
||||
jar cf javaparser.jar -C javaparser/bin .
|
||||
|
||||
sync_javaparser:: \
|
||||
; if [ ! -d javaparser/.git ] ; \
|
||||
then rm -rf javaparser ; \
|
||||
git clone https://github.com/javaparser/javaparser.git ; \
|
||||
fi ; \
|
||||
cd javaparser ; git checkout javaparser-1.0.6 ; cd ..
|
||||
|
||||
sync_htmlparser:: \
|
||||
; if [ -d htmlparser/.hg ] ; \
|
||||
then cd htmlparser ; hg pull --rebase ; cd .. ; \
|
||||
else \
|
||||
rm -rf htmlparser ; \
|
||||
hg clone https://hg.mozilla.org/projects/htmlparser ; \
|
||||
fi
|
||||
|
||||
sync:: sync_javaparser sync_htmlparser
|
||||
|
||||
translate:: translator \
|
||||
; mkdir -p ../javasrc ; \
|
||||
java -jar translator.jar \
|
||||
htmlparser/src/nu/validator/htmlparser/impl \
|
||||
.. ../nsHtml5AtomList.h
|
||||
|
||||
translate_from_snapshot:: translator \
|
||||
; mkdir -p ../javasrc ; \
|
||||
java -jar translator.jar \
|
||||
../javasrc \
|
||||
.. ../nsHtml5AtomList.h
|
||||
|
||||
named_characters:: translator \
|
||||
; java -cp translator.jar \
|
||||
nu.validator.htmlparser.generator.GenerateNamedCharactersCpp \
|
||||
named-character-references.html ../
|
||||
|
||||
clean_javaparser:: \
|
||||
; rm -rf javaparser/bin javaparser.jar
|
||||
|
||||
clean_htmlparser:: \
|
||||
; rm -rf htmlparser/bin translator.jar
|
||||
|
||||
clean:: clean_javaparser clean_htmlparser
|
||||
@@ -1,46 +0,0 @@
|
||||
If this is your first time building the HTML5 parser, you need to execute the
|
||||
following commands (from this directory) to bootstrap the translation:
|
||||
|
||||
make sync # fetch remote source files and licenses
|
||||
make translate # perform the Java-to-C++ translation from the remote
|
||||
# sources
|
||||
make named_characters # Generate tables for named character tokenization
|
||||
|
||||
If you make changes to the translator or the javaparser, you can rebuild by
|
||||
retyping 'make' in this directory. If you make changes to the HTML5 Java
|
||||
implementation, you can retranslate the Java sources from the htmlparser
|
||||
repository by retyping 'make translate' in this directory.
|
||||
|
||||
The makefile supports the following targets:
|
||||
|
||||
sync_htmlparser:
|
||||
Retrieves the HTML parser and Java to C++ translator sources from Mozilla's
|
||||
htmlparser repository.
|
||||
sync_javaparser:
|
||||
Retrieves the javaparser sources from GitHub.
|
||||
sync:
|
||||
Runs both sync_javaparser and sync_htmlparser.
|
||||
javaparser:
|
||||
Builds the javaparser library retrieved earlier by sync_javaparser.
|
||||
translator:
|
||||
Runs the javaparser target and then builds the Java to C++ translator from
|
||||
sources retrieved earlier by sync_htmlparser.
|
||||
libs:
|
||||
The default target. Alias for translator
|
||||
translate:
|
||||
Runs the translator target and then translates the HTML parser sources
|
||||
retrieved by sync_htmlparser copying the Java sources to ../javasrc.
|
||||
translate_from_snapshot:
|
||||
Runs the translator target and then translates the HTML parser sources
|
||||
stored in ../javasrc.
|
||||
named_characters:
|
||||
Generates data tables for named character tokenization.
|
||||
clean_javaparser:
|
||||
Removes the build products of the javaparser target.
|
||||
clean_htmlparser:
|
||||
Removes the build products of the translator target.
|
||||
clean:
|
||||
Runs both clean_javaparser and clean_htmlparser.
|
||||
|
||||
Ben Newman (23 September 2009)
|
||||
Henri Sivonen (11 August 2016)
|
||||
@@ -1,2 +0,0 @@
|
||||
Main-Class: nu.validator.htmlparser.cpptranslate.Main
|
||||
Class-Path: javaparser.jar
|
||||
File diff suppressed because one or more lines are too long
Reference in New Issue
Block a user