This commit is contained in:
madsenco committed 2011-01-10 16:11:31 +01:00
commit ebffcbed5b
34 files changed
+1437

No files matched your search

+11
View File
@@ -0,0 +1,11 @@
#!/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, "")))