From fc351fccc8f3bb11ff17e435e68d419c2359e24d 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 8f23e23..72b9e05 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!"