Warning: this is an htmlized version!
The original is here, and the conversion rules are here. |
#!/bin/dash # This file: # http://angg.twu.net/bin/eev-wconfig.html # http://angg.twu.net/bin/eev-wconfig # (find-angg "bin/eev-wconfig") # Author: Eduardo Ochs <eduardoochs@gmail.com> # (find-sh "eev-wconfig c") # (find-sh "eev-wconfig d") # (defun ewb () (interactive) (find-angg "bin/eev-wconfig")) # (defun ewc () (interactive) (find-sh "eev-wconfig c")) # (defun ewd () (interactive) (find-sh "eev-wconfig d")) wrap1 () { echo "#!/bin/sh\nexec $1 \$*"; } wrap2 () { rm -fv $2; wrap1 $1 > $2; chmod 755 $2; ls -lAF $2; } create_wget () { wrap2 wget ~/eev-wconfig/wget.exe } create_README () { cp -v ~/TH/L/eev-wconfig/README-wconfig.el ~/eev-wconfig/ } create_all () { wrap2 wget ~/eev-wconfig/wget.exe wrap2 pdftotext ~/eev-wconfig/pdftotext.exe wrap2 lua5.2 ~/eev-wconfig/lua52.exe wrap2 lua5.3 ~/eev-wconfig/lua53.exe wrap2 lua5.4 ~/eev-wconfig/lua54.exe } delete_exe () { rm -fv ~/eev-wconfig/wget.exe rm -fv ~/eev-wconfig/pdftotext.exe rm -fv ~/eev-wconfig/lua52.exe rm -fv ~/eev-wconfig/lua53.exe rm -fv ~/eev-wconfig/lua54.exe } delete_other () { rm -fv ~/eev-wconfig/README-wconfig.el rm -fv ~/eev-wconfig/lua52.dll rm -fv ~/eev-wconfig/lua53.dll rm -fv ~/eev-wconfig/lua54.dll rm -fv ~/eev-wconfig/Coetzee99.pdf rm -fv ~/eev-wconfig/2022dragABC.mp4 } delete_all () { delete_exe delete_other } case "_$1_" in _c_) create_all;; _d_) delete_all;; _do_) delete_other;; _de_) delete_exe;; _r_) create_README;; _w_) create_wget;; esac : <<'%%%%%' * (eepitch-sh) * (eepitch-kill) * (eepitch-sh) . eev-wconfig wrap1 FOO wrap2 wget ~/eev-wconfig/wget.exe wrap2 pdftotext ~/eev-wconfig/pdftotext.exe wrap2 lua5.2 ~/eev-wconfig/lua52.exe wrap2 lua5.3 ~/eev-wconfig/lua53.exe wrap2 lua5.4 ~/eev-wconfig/lua54.exe ~/eev-wconfig/wget.exe --version ~/eev-wconfig/pdftotext.exe -v ~/eev-wconfig/lua52.exe -v ~/eev-wconfig/lua53.exe -v ~/eev-wconfig/lua54.exe -v create_all delete_all eev-wconfig d eev-wconfig c eev-wconfig d eev-wconfig c eev-wconfig d eev-wconfig r eev-wconfig r ls -lAF ~/eev-wconfig/ %%%%%