mirror of
https://git.savannah.gnu.org/git/guile.git
synced 2025-04-30 11:50:28 +02:00
* configure.in: Don't produce `examples/*/Makefile'. * examples/Makefile.am (SUBDIRS): Remove. (EXTRA_DIST, AM_CFLAGS, AM_LIBS): New. (box/box, box/box.o, box-module/box, box-module/box.o, libbox.la, box-dynamic/box.lo, libbox-module.la, box-dynamic-module/box.lo, installcheck, CLEANFILES, clean-local): New targets, aggregated from `Makefile.am' files formerly in sub-directories. * examples/check.test: New file, aggregated from `check.test' files in sub-directories. |
||
---|---|---|
.. | ||
fact | ||
hello | ||
README | ||
simple-hello.scm |
-*- outline -*- * Overview This directory includes examples which show how to write scripts using Guile. The descriptions below assume that you have a working copy of Guile installed and available with the standard installation prefix `/usr/local'. * Included Examples ** simple-hello.scm The simplest "Hello World!" program for Guile. Run it like this: $ guile -s simple-hello.scm ** hello An advanced version of the script above, with command line handling for the important options --help and --version. Run it like this: ./hello or guile -s hello ** fact Command-line factorial calculator. Run it like this: ./fact 5 to calculate the factorial of 5.