Add polyglot recipes to justfile
This commit is contained in:
parent
fa25c846c7
commit
2e97f3f026
22
justfile
22
justfile
@ -16,7 +16,27 @@ create:
|
|||||||
mkdir -p tmp
|
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
|
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 up
|
||||||
clean:
|
clean:
|
||||||
rm -r tmp
|
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!"
|
||||||
|
Loading…
Reference in New Issue
Block a user