Merge pull request #6 from Kreyren/patch-6

examples/hello: Add new example
This commit is contained in:
Mike Gran 2021-12-07 15:58:59 -08:00 committed by GitHub
commit 40dce673d6
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)