aboutsummaryrefslogtreecommitdiff
path: root/run.sh
diff options
context:
space:
mode:
authorMartin Ashby <martin@ashbysoft.com>2022-10-09 13:06:52 +0100
committerMartin Ashby <martin@ashbysoft.com>2022-10-09 13:06:52 +0100
commit4374e88f587d6e7a0135011a8d7e2d904e9369df (patch)
treecf3633d5fcb35f39a481570ced4da95d771b6e6d /run.sh
downloadrust-quine-4374e88f587d6e7a0135011a8d7e2d904e9369df.tar.gz
rust-quine-4374e88f587d6e7a0135011a8d7e2d904e9369df.tar.bz2
rust-quine-4374e88f587d6e7a0135011a8d7e2d904e9369df.tar.xz
rust-quine-4374e88f587d6e7a0135011a8d7e2d904e9369df.zip
Simple quine in rust, just because.HEADmain
Diffstat (limited to 'run.sh')
-rwxr-xr-xrun.sh8
1 files changed, 8 insertions, 0 deletions
diff --git a/run.sh b/run.sh
new file mode 100755
index 0000000..382af98
--- /dev/null
+++ b/run.sh
@@ -0,0 +1,8 @@
+# Run it once,
+rustc -o quine main.rs
+./quine > main2.rs
+# Run it from the generated sources
+rustc -o quine2 main2.rs
+./quine2 > main3.rs
+# Check it's the same every time
+md5sum main.rs main2.rs main3.rs \ No newline at end of file