mirror of
https://github.com/dlang/tools.git
synced 2025-04-25 12:40:21 +03:00
18 lines
432 B
D
Executable file
18 lines
432 B
D
Executable file
#!/usr/bin/env rdmd
|
|
/* Distributed under the Boost Software License, Version 1.0.
|
|
* (See accompanying file LICENSE_1_0.txt or copy at
|
|
* http://www.boost.org/LICENSE_1_0.txt)
|
|
*/
|
|
|
|
/* Replace line endings with LF
|
|
*/
|
|
|
|
import std.file, std.path, std.string, std.range;
|
|
|
|
void main(string[] args)
|
|
{
|
|
foreach (f; args[1 .. $])
|
|
if (f.exists)
|
|
f.write(f.readText.lineSplitter.chain([""]).join('\n'));
|
|
}
|
|
|