mirror of
https://github.com/troglobit/libuev.git
synced 2026-11-08 16:10:59 +00:00
My stuff
This commit is contained in:
commit
ebffcbed5b
34 files changed
+1437
No files matched your search
Executable
+11
@@ -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, "")))
|
||||
Reference in new issue
Block a user