Warning: this is an htmlized version!
The original is here, and the conversion rules are here. |
#!/bin/bash # This file: # http://anggtwu.net/LUA/Gdb1.sh.html # http://anggtwu.net/LUA/Gdb1.sh # (find-angg "LUA/Gdb1.sh") # Author: Eduardo Ochs <eduardoochs@gmail.com> LUA_INCLUDE_DIR=/usr/include/lua5.3 LUA_LIB=lua5.3 STEM=Gdb1 cd ~/LUA/ compile () { gcc -gdwarf-4 -g3 -shared -I${LUA_INCLUDE_DIR} -o ${STEM}.so ${STEM}.c -l${LUA_LIB} gcc -gdwarf-4 -g3 -DMAIN -I${LUA_INCLUDE_DIR} -o ${STEM} ${STEM}.c -l${LUA_LIB} } compileandrun () { gcc -gdwarf-4 -g3 -DMAIN -I${LUA_INCLUDE_DIR} -o ${STEM} ${STEM}.c -l${LUA_LIB} && ./Gdb1 } eval $* : <<'%%%%%' * (eepitch-shell) * (eepitch-kill) * (eepitch-shell) ~/LUA/Gdb1.sh compile ~/LUA/Gdb1.sh compileandrun # (find-sh0 "~/LUA/Gdb1.sh compileandrun") * (eepitch-sh) * (eepitch-kill) * (eepitch-sh) . Gdb1.sh %%%%% # Local Variables: # coding: utf-8-unix # End: