From 2e97f3f0264c9581184f507fde81a76225a265c5 Mon Sep 17 00:00:00 2001 From: Casey Rodarmor Date: Fri, 7 Oct 2016 17:56:39 -0700 Subject: [PATCH] Add polyglot recipes to justfile --- justfile | 22 +++++++++++++++++++++- 1 file changed, 21 insertions(+), 1 deletion(-) diff --git a/justfile b/justfile index e9d9cdc..a0f1810 100644 --- a/justfile +++ b/justfile @@ -16,7 +16,27 @@ create: mkdir -p tmp echo 'int printf(const char*, ...); int main() { char *s = "int printf(const char*, ...); int main() { char *s = %c%s%c; printf(s, 34, s, 34); return 0; }"; printf(s, 34, s, 34); return 0; }' > tmp/gen0.c - # clean up clean: rm -r tmp + +python: + #!/usr/bin/env python3 + print('Hello from python!') + +js: + #!/usr/bin/env node + console.log('Greetings from JavaScript!') + +perl: + #!/usr/bin/env perl + print "Larry Wall says Hi!\n"; + +sh: + #!/usr/bin/env sh + hello='Yo' + echo "$hello from a shell script!" + +ruby: + #!/usr/bin/env ruby + puts "Hello from ruby!"