mirror of
https://git.savannah.gnu.org/git/guile.git
synced 2025-05-06 15:40:29 +02:00
Aggregate Makefile.am' files under
examples/'.
* 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.
This commit is contained in:
parent
8760f4694d
commit
9a84dc8bbc
17 changed files with 311 additions and 512 deletions
|
@ -1,25 +0,0 @@
|
|||
## Process this file with Automake to create Makefile.in
|
||||
##
|
||||
## Copyright (C) 2001, 2006 Free Software Foundation, Inc.
|
||||
##
|
||||
## This file is part of GUILE.
|
||||
##
|
||||
## GUILE is free software; you can redistribute it and/or modify
|
||||
## it under the terms of the GNU General Public License as
|
||||
## published by the Free Software Foundation; either version 2, or
|
||||
## (at your option) any later version.
|
||||
##
|
||||
## GUILE is distributed in the hope that it will be useful, but
|
||||
## WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
## MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
## GNU General Public License for more details.
|
||||
##
|
||||
## You should have received a copy of the GNU General Public
|
||||
## License along with GUILE; see the file COPYING. If not, write
|
||||
## to the Free Software Foundation, Inc., 51 Franklin Street, Fifth
|
||||
## Floor, Boston, MA 02110-1301 USA
|
||||
|
||||
EXTRA_DIST = README simple-hello.scm hello fact check.test
|
||||
|
||||
installcheck:
|
||||
srcdir=$(srcdir) GUILE_LOAD_PATH=$(top_srcdir) $(srcdir)/check.test
|
|
@ -1,53 +0,0 @@
|
|||
#!/bin/sh
|
||||
|
||||
# must be run from this directory
|
||||
guile=${GUILE-../../libguile/guile}
|
||||
if [ -x $guile ] ; then
|
||||
:
|
||||
else
|
||||
echo could not find guile interpreter.
|
||||
echo '(are you running this script from' `dirname $0` '?)'
|
||||
echo GUILE env var: ${GUILE-not set}
|
||||
exit 1
|
||||
fi
|
||||
|
||||
if test "X$srcdir" = X; then
|
||||
srcdir=.
|
||||
fi
|
||||
|
||||
set -e
|
||||
|
||||
#
|
||||
# simple-hello.scm
|
||||
#
|
||||
$guile -s $srcdir/simple-hello.scm > TMP
|
||||
cat <<EOF | diff -u - TMP
|
||||
Hello, World!
|
||||
EOF
|
||||
rm -f TMP
|
||||
|
||||
#
|
||||
# hello
|
||||
#
|
||||
$guile -s $srcdir/hello > TMP
|
||||
echo "Hello, World!" | diff -u - TMP
|
||||
rm -f TMP
|
||||
|
||||
$guile -s $srcdir/hello --version > TMP
|
||||
echo "hello 0.0.1" | diff -u - TMP
|
||||
rm -f TMP
|
||||
|
||||
$guile -s $srcdir/hello --help > TMP
|
||||
cat <<EOF | diff -u - TMP
|
||||
Usage: hello [options...]
|
||||
--help, -h Show this usage information
|
||||
--version, -v Show version information
|
||||
EOF
|
||||
rm -f TMP
|
||||
|
||||
#
|
||||
# fact
|
||||
#
|
||||
case `$guile -s $srcdir/fact 5` in 120) ;; *) echo $0: error: fact 5 ;; esac
|
||||
|
||||
# check.test ends here
|
Loading…
Add table
Add a link
Reference in a new issue