From 5500c9890a41b380a340bc0413dbc85d6bc5d736 Mon Sep 17 00:00:00 2001 From: Kreyren Date: Tue, 7 Dec 2021 19:39:31 +0000 Subject: [PATCH] examples/hello: Add new example Hello, potato-make~ --- examples/hello.scm | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 examples/hello.scm diff --git a/examples/hello.scm b/examples/hello.scm new file mode 100644 index 0000000..883e3ee --- /dev/null +++ b/examples/hello.scm @@ -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)