diff options
Diffstat (limited to 'etc/eol.lua')
-rw-r--r-- | etc/eol.lua | 13 |
1 files changed, 0 insertions, 13 deletions
diff --git a/etc/eol.lua b/etc/eol.lua deleted file mode 100644 index eeaf0ce..0000000 --- a/etc/eol.lua +++ /dev/null | |||
@@ -1,13 +0,0 @@ | |||
1 | ----------------------------------------------------------------------------- | ||
2 | -- Little program to adjust end of line markers. | ||
3 | -- LuaSocket sample files | ||
4 | -- Author: Diego Nehab | ||
5 | ----------------------------------------------------------------------------- | ||
6 | local mime = require("mime") | ||
7 | local ltn12 = require("ltn12") | ||
8 | local marker = '\n' | ||
9 | if arg and arg[1] == '-d' then marker = '\r\n' end | ||
10 | local filter = mime.normalize(marker) | ||
11 | local source = ltn12.source.chain(ltn12.source.file(io.stdin), filter) | ||
12 | local sink = ltn12.sink.file(io.stdout) | ||
13 | ltn12.pump.all(source, sink) | ||