aboutsummaryrefslogtreecommitdiff
path: root/etc/eol.lua
diff options
context:
space:
mode:
Diffstat (limited to 'etc/eol.lua')
-rw-r--r--etc/eol.lua13
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-----------------------------------------------------------------------------
6local mime = require("mime")
7local ltn12 = require("ltn12")
8local marker = '\n'
9if arg and arg[1] == '-d' then marker = '\r\n' end
10local filter = mime.normalize(marker)
11local source = ltn12.source.chain(ltn12.source.file(io.stdin), filter)
12local sink = ltn12.sink.file(io.stdout)
13ltn12.pump.all(source, sink)