examples/hello: Add new example

Hello, potato-make~
This commit is contained in:
Kreyren 2021-12-07 19:39:31 +00:00 committed by GitHub
parent 8aeef1d8eb
commit 5500c9890a
Signed by: GitHub
GPG Key ID: 4AEE18F83AFDEB23

13
examples/hello.scm Normal file

@ -0,0 +1,13 @@
#!/usr/bin/env sh
exec guile -s "$0" "$@"
!#
;;; Rule that outputs "Hello from potato-make!" when called as `./hello.scm hello`
(use-modules (potato make))
(initialize)
(: "hello")
(~ (display "Hello from potato-make!\n"))
(execute)