Commits

Shlomi Fish committed de5b0dd

Optimised further.

  • Participants
  • Parent commits ccedcca
  • Branches use-of-my-dollar-underscore-is-experimental

Comments (0)

Files changed (2)

 	WML_LATEMP_PATH="$$(perl -MFile::Spec -e 'print File::Spec->rel2abs(shift)' '$@')" ; ( cd $(T2_SRC_DIR) && wml -o "$${WML_LATEMP_PATH}" $(T2_WML_FLAGS) -DLATEMP_FILENAME=$(patsubst $(T2_DEST)/%,%,$(patsubst %.wml,%,$@)) -DPACKAGE_BASE="$$( unset MAKELEVEL ; cd $(FORTUNES_DIR) && make print_package_base )" $(patsubst $(T2_SRC_DIR)/%,%,$<) )
 
 $(T2_FORTUNES_ALL__TEMP__HTML): $(T2_FORTUNES_ALL_WML) $(DOCS_COMMON_DEPS) $(FORTUNES_XHTMLS__FOR_INPUT_PORTIONS) $(FORTUNES_XHTMLS_TOCS)
-	WML_LATEMP_PATH="$$(perl -MFile::Spec -e 'print File::Spec->rel2abs(shift)' '$@')" ; WML_LATEMP_SRC_PATH="$$(perl -MFile::Spec -e 'print File::Spec->rel2abs(shift)' '$<')" ; ( cd $(T2_SRC_DIR) && wml -o "$${WML_LATEMP_PATH}" $(T2_WML_FLAGS) -DLATEMP_FILENAME=$(patsubst $(T2_DEST)/%,%,$(patsubst %.wml,%,$@)) -DPACKAGE_BASE="$$( unset MAKELEVEL ; cd $(FORTUNES_DIR) && make print_package_base )" "$${WML_LATEMP_SRC_PATH}" )
+	WML_LATEMP_PATH="$$(perl -MFile::Spec -e 'print File::Spec->rel2abs(shift)' '$@')" ; WML_LATEMP_SRC_PATH="$$(perl -MFile::Spec -e 'print File::Spec->rel2abs(shift)' '$<')" ; ( cd $(T2_SRC_DIR) && wml -o "$${WML_LATEMP_PATH}" $(T2_WML_FLAGS) -DLATEMP_FILENAME=$(patsubst $(T2_DEST)/%,%,$(patsubst %.wml,%,$@)) -DPACKAGE_BASE="$$( unset MAKELEVEL ; cd $(FORTUNES_DIR) && make print_package_base )" "$${WML_LATEMP_SRC_PATH}" ) && perl -MIO::All -lpi -0777 -C -e 's#^\({5}include "([^"]+)"\){5}\n#io->file("lib/$$1")->utf8->all#egms; s#(<table class="(?:info|irc-conversation)")(>)#$$1 summary=""$$2#gms' '$@'
 
 $(T2_DEST)/humour/fortunes/index.html: $(FORTUNES_LIST__DEPS)
 

File lib/Shlomif/Homepage/FortuneCollections.pm

     return <<"EOF";
 <h2 id="$id">$title</h2>
 <div class="fortunes_list">
-#include "fortunes/xhtmls/$id.xhtml-for-input"
+(((((include "fortunes/xhtmls/$id.xhtml-for-input")))))
 </div>
 EOF
 }
 
         $ret .= <<"FOO_EOF" ;
 <li><a href="#$id">$title</a><br />
-#include "fortunes/xhtmls/$id.toc-xhtml"
+(((((include "fortunes/xhtmls/$id.toc-xhtml")))))
 </li>
 FOO_EOF