Warning: this is an htmlized version!
The original is here, and the conversion rules are here. |
#!/usr/bin/zsh # This file: # http://anggtwu.net/dednat7/dednat7.sh.html # http://anggtwu.net/dednat7/dednat7.sh # (find-angg "dednat7/dednat7.sh") # Author: Eduardo Ochs <eduardoochs@gmail.com> # # Based on: # (find-angg "bin/eevgitlib1.sh") # Usage on my machine: # . ~/dednat7/dednat7.sh # # (defun e () (interactive) (find-angg "dednat7/dednat7.sh")) # (defun o () (interactive) (find-angg "bin/eevgitlib1.sh")) # (find-es "dednat" "dednat7-dednat7") # (find-angg "LUA/dednat7load.lua") # LUA_TO_BASEDIR=( dednat7load.lua ) LUA_TO_DEDNAT7=( Dednat7.lua Dednat7oldheads.lua DednatPreamble1.lua DeleteComments3.lua Gram4.lua Output1.lua ) LUA_TO_DEDNAT7=( Dednat7.lua Dednat7oldheads.lua DednatPreamble1.lua DeleteComments3.lua Gram4.lua Output1.lua PreTraceback1.lua PrintFunction1.lua Repl3.lua XPCall1.lua ) LUA_TO_DEDNAT6=( abbrevs.lua diagforth.lua diagmiddle.lua diagstacks.lua diagtex.lua eoo.lua errors.lua heads6.lua parse.lua rect.lua stacks.lua treesegs.lua treetex.lua ) LATEX_TO_BASEDIR=( dednat7-test1.tex dednat7-testtex1.tex ) LATEX_TO_BASEDIR=( dednat7-test1.tex ) mktmpdir () { # rm -Rfv $1/ mkdir $1/ mkdir $1/dednat7/ mkdir $1/dednat6/ cd $1/ } copy1 () { cp -v ~/LUA/lua50init.lua dednat7/edrxlib.lua for i in $LUA_TO_BASEDIR; do cp -v ~/LUA/$i . ; done for i in $LUA_TO_DEDNAT7; do cp -v ~/LUA/$i dednat7/ ; done for i in $LUA_TO_DEDNAT6; do cp -v ~/LATEX/dednat6/$i dednat6/ ; done for i in $LATEX_TO_BASEDIR; do cp -v ~/LATEX/$i . ; done } prep1 () { rm -Rfv /tmp/dn7test/ mktmpdir /tmp/dn7test/ copy1 } : <<'%%%%%' * (eepitch-zsh) * (eepitch-kill) * (eepitch-zsh) . dednat7.sh prep1 # (find-LATEX "dednat7-test1.tex") lualatex dednat7-test1.tex xpdf dednat7-test1.pdf # (find-fline "/tmp/dn7test/") texlua # (find-man "texlua ") \directlua{dofile "dednat7load.lua"} % (find-LATEX "dednat7load.lua") \directlua{dednat7preamble()} % (find-angg "LUA/DednatPreamble1.lua") \directlua{dednat7oldheads()} % (find-angg "LUA/Dednat7oldheads.lua") %%%%% # Local Variables: # coding: utf-8-unix # End: