Files
libuev/.stuff/bin/amppath
T
2011-01-10 16:11:31 +01:00

12 lines
303 B
Lua
Executable File

#!/usr/bin/env lua
function system(command)
local fd = io.popen(command, "r")
string = fd:read("*all")
fd:close()
return (string.gsub(string, "\n$", ""))
end
amppath = os.getenv("AMPROOT") or error("AMPROOT not defined")
print((string.gsub(arg[1] or system("pwd"), "^"..amppath, "")))