From 61d2ff5d2c91ec8b426f9f1e666a7edd3c13ee33 Mon Sep 17 00:00:00 2001 From: jaseg Date: Sat, 25 Oct 2014 16:51:49 +0200 Subject: Added installation instructions and extended the README --- LOLCat-Rainbow.JPG | Bin 0 -> 42785 bytes Makefile | 7 ++++++- README.md | 32 ++++++++++++++++++++++++++++++++ 3 files changed, 38 insertions(+), 1 deletion(-) create mode 100644 LOLCat-Rainbow.JPG create mode 100644 README.md diff --git a/LOLCat-Rainbow.JPG b/LOLCat-Rainbow.JPG new file mode 100644 index 0000000..9524d26 Binary files /dev/null and b/LOLCat-Rainbow.JPG differ diff --git a/Makefile b/Makefile index 23dd508..ff1d72d 100644 --- a/Makefile +++ b/Makefile @@ -3,4 +3,9 @@ all: lolcat lolcat: lolcat.c fgetwc_fix.c gcc -g -std=c99 -Wall -o lolcat lolcat.c fgetwc_fix.c -# gcc -g -std=c99 -Wall -nostdinc -nostdlib -I/usr/x86_64-linux-uclibc/usr/include -I/usr/lib/gcc/x86_64-unknown-linux-gnu/4.9.1/include -I/usr/include -L/usr/x86_64-linux-uclibc/usr/lib /usr/x86_64-linux-uclibc/usr/lib/crt1.o -lc -lrt -o lolcat lolcat.c + +install: lolcat + install lolcat /usr/local/bin + +.PHONY: install all + diff --git a/README.md b/README.md new file mode 100644 index 0000000..79a5bdb --- /dev/null +++ b/README.md @@ -0,0 +1,32 @@ +# What? + +![](https://raw.githubusercontent.com/jaseg/lolcat/master/LOLCat-Rainbow.jpg) + +## Screenshot + +![](https://raw.githubusercontent.com/jaseg/lolcat/master/screenshot.png) + +## Installation + +```bash +$ make && sudo make install +``` + +## Why? + +```bash +newton~/d/lolcat <3 dmesg>foo +newton~/d/lolcat <3 cat foo foo foo foo foo foo >bar +newton~/d/lolcat <3 cat bar bar bar bar bar bar >foo +newton~/d/lolcat <3 cat foo foo foo foo foo foo >bar +newton~/d/lolcat <3 cat bar bar bar bar bar bar >foo +newton~/d/lolcat <3 ls -lh foo +-rw-r--r-- 1 jaseg jaseg 578M Oct 25 16:48 foo +newton~/d/lolcat <3 time upstream/bin/lolcat foo +13.51user 1.34system 0:15.99elapsed 92%CPU (0avgtext+0avgdata 10864maxresident)k +0inputs+0outputs (0major+1716minor)pagefaults 0swaps +newton~/d/lolcat <3 time ./lolcat foo +0.02user 0.00system 0:00.09elapsed 34%CPU (0avgtext+0avgdata 1936maxresident)k +0inputs+0outputs (0major+117minor)pagefaults 0swaps +``` + -- cgit