diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..f940759 --- /dev/null +++ b/.gitignore @@ -0,0 +1,26 @@ +asino +.gdb_history +# Compiled Object files +*.o +*.obj + +# Compiled Dynamic libraries +*.so +*.dylib +*.dll + +# Compiled Static libraries +*.a +*.lib + +# Executables +*.exe + +# DUB +.dub +docs.json +__dummy.html +docs/ + +# Code coverage +*.lst diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..c7b2be9 --- /dev/null +++ b/Makefile @@ -0,0 +1,5 @@ +asino: + ldc2 -O2 asino.d + +clean: asino.o + rm asino.o diff --git a/asino.d b/asino.d index 6eb0ac5..d06a2db 100644 --- a/asino.d +++ b/asino.d @@ -21,12 +21,11 @@ extern(C) int poll(pollfd *fds, int nfds, int timeout); } +enum VERSION = "0.0.1"; string versionSt = "...a man, being just as hungry as thirsty, and placed in between food and drink, must necessarily remain where he is and starve to death - -Aristole"; - +Aristole\n\n"~"asino "~VERSION; void main (string[] args) @@ -51,9 +50,8 @@ main (string[] args) } string[] lines = void; - writeln(isaTTY()); - if(isaTTY()){ - // read stdin, ignore cli args + if(isaTTY()){ + // read stdin, ignore cli args auto p = stdin.byLineCopy(No.keepTerminator).array(); writeln(p[2]); lines = p;