about summary refs log tree commit diff
path: root/README.md
diff options
context:
space:
mode:
authorPatryk Niedźwiedziński <pniedzwiedzinski19@gmail.com>2021-04-17 10:28:11 +0200
committerPatryk Niedźwiedziński <pniedzwiedzinski19@gmail.com>2021-04-17 10:28:11 +0200
commitb1ddaa81f28b8bbc62d6d50526e0935b173099eb (patch)
treee606c194f8eecdedf3f710ed097cadfe97d60122 /README.md
downloadcat-cosmopolitan-b1ddaa81f28b8bbc62d6d50526e0935b173099eb.tar.gz
cat-cosmopolitan-b1ddaa81f28b8bbc62d6d50526e0935b173099eb.zip
Diffstat (limited to 'README.md')
-rw-r--r--README.md35
1 files changed, 35 insertions, 0 deletions
diff --git a/README.md b/README.md
new file mode 100644
index 0000000..7a93879
--- /dev/null
+++ b/README.md
@@ -0,0 +1,35 @@
+# cat
+
+This is a simple C program that outputs file content. The magic is that it works
+on Linux, *BSD, macOs, Windows thanks to [cosmopolitan](https://github.com/jart/cosmopolitan).
+
+I created this repo as a project template for simple ape programs. `/ape` folder
+contains https://justine.lol/cosmopolitan/cosmopolitan-amalgamation-0.3.zip and
+`/stdio` is copied from cosmopolitan@7ed524ca31bca83fe6700045d346cad3f97b9567
+
+## Running
+
+```sh
+wget https://niedzwiedzinski.cyou/cat.com
+chmod +x cat.com
+sha256sum cat.com
+# 495b3bb169813b07d4c4c43568c6c395e72a952fdf7fe3e5b46bf130cc415af0
+
+# For zsh or fish
+bash -c "./cat.com"
+
+# For everything else
+./cat.com
+```
+
+## Compiling
+
+Requirements:
+
+- make
+- gcc
+- objcopy (from pkg `binutils`)
+
+```
+make
+```