summaryrefslogtreecommitdiff
path: root/Build/source/utils/chktex/chktex-1.6.4/MakeHTML.in
diff options
context:
space:
mode:
Diffstat (limited to 'Build/source/utils/chktex/chktex-1.6.4/MakeHTML.in')
-rw-r--r--Build/source/utils/chktex/chktex-1.6.4/MakeHTML.in20
1 files changed, 20 insertions, 0 deletions
diff --git a/Build/source/utils/chktex/chktex-1.6.4/MakeHTML.in b/Build/source/utils/chktex/chktex-1.6.4/MakeHTML.in
new file mode 100644
index 00000000000..669afc481c9
--- /dev/null
+++ b/Build/source/utils/chktex/chktex-1.6.4/MakeHTML.in
@@ -0,0 +1,20 @@
+#! @PERL5@
+
+$latexonly = 0;
+
+while(<>)
+{
+ $latexonly = 1 if /^%latex/i;
+ $latexonly = 0 if /^%endlatex/i;
+
+
+ if($latexonly) {
+ if(/^%!(.*)/)
+ {
+ print $1;
+ }
+ }
+ else {
+ print;
+ }
+}