Commits

Shlomi Fish committed b62594d

Make sure a .pl script can be downloaded.

  • Participants
  • Parent commits d9de5c4

Comments (0)

Files changed (2)

 
 DOCS_COMMON_DEPS = template.wml lib/MyNavData.pm
 
-all: make-dirs docbook_targets fortunes-target latemp_targets css_targets sitemap_targets copy_fortunes site-source-install presentations_targets lc_pres_targets art_slogans_targets graham_func_pres_targets mojo_pres hhgg_convert lib/MathJax/README.md mathjax_dest
+all: make-dirs docbook_targets fortunes-target latemp_targets css_targets sitemap_targets copy_fortunes site-source-install presentations_targets lc_pres_targets art_slogans_targets graham_func_pres_targets mojo_pres hhgg_convert lib/MathJax/README.md mathjax_dest plaintext_scripts_with_offending_extensions
 
 include lib/make/gmsl/gmsl
 
 	cd lib && rsync -r -v --progress MathJax/ ../$(T2_DEST)/js/MathJax/
 	rm -fr $(MATHJAX_DEST_DIR)/.git
 	rm -fr $(MATHJAX_DEST_DIR)/.gitignore
+
+SCRIPTS_WITH_OFFENDING_EXTENSIONS = t2/MathVentures/gen-bugs-in-square-svg.pl
+
+SCRIPTS_WITH_OFFENDING_EXTENSIONS_TARGETS = $(patsubst $(T2_SRC_DIR)/%.pl,$(T2_DEST)/%-pl.txt,$(SCRIPTS_WITH_OFFENDING_EXTENSIONS))
+
+plaintext_scripts_with_offending_extensions: $(SCRIPTS_WITH_OFFENDING_EXTENSIONS_TARGETS)
+
+$(SCRIPTS_WITH_OFFENDING_EXTENSIONS_TARGETS): $(T2_DEST)/%-pl.txt: $(T2_SRC_DIR)/%.pl
+	cp -f $< $@

File t2/MathVentures/bugs-in-square-mathml.xhtml.wml

 </p>
 
 <p>
-Here’s <a href="gen-bugs-in-square-svg.pl">a Perl script</a> to generate an
+Here’s <a href="gen-bugs-in-square-svg-pl.txt">a Perl script</a> to generate an
 <a href="http://www.w3.org/Graphics/SVG/">SVG</a> image of the squares inside
 each other (that was displayed above).
 </p>