From b5c4df4099d04b2d2d5c63054fe31956372f12da Mon Sep 17 00:00:00 2001 From: Peter Verthez Date: Sat, 4 Jan 2003 14:45:44 +0000 Subject: [PATCH] Added shell script to test program before installation. --- bin/Makefile.am | 2 ++ bin/gedcom-check.sh | 21 +++++++++++++++++++++ 2 files changed, 23 insertions(+) create mode 100755 bin/gedcom-check.sh diff --git a/bin/Makefile.am b/bin/Makefile.am index 53e9b07..80b3059 100644 --- a/bin/Makefile.am +++ b/bin/Makefile.am @@ -6,6 +6,8 @@ localedir = $(datadir)/locale INCLUDES = -I$(srcdir)/../intl -I$(srcdir)/../include -I$(srcdir)/../utf8 CFLAGS = -O2 -W -Wall -pedantic -Wno-long-long @EXTRA_CFLAGS@ +EXTRA_DIST = gedcom-check.sh + bin_PROGRAMS = gedcom-check gedcom_check_SOURCES = gedcom-check.c gedcom_check_LDFLAGS = -L../gedcom/.libs -L../utf8/.libs @ICONV_LIBPATH@ diff --git a/bin/gedcom-check.sh b/bin/gedcom-check.sh new file mode 100755 index 0000000..8907165 --- /dev/null +++ b/bin/gedcom-check.sh @@ -0,0 +1,21 @@ +# $Id$ +# $Name$ +# Test script for gedcom-check (when not installed yet) + +ltcmd="../libtool --mode=execute" +for lib in ../gedcom/libgedcom.la ../utf8/libutf8tools.la +do + ltcmd="$ltcmd -dlopen $lib" +done + +ln -s ../data/gedcom.enc . +ln -s ../data/new.ged . +ln -s ../iconv/glibc/.libs/ANSI_Z39.47.so . +ln -s ../iconv/glibc/gconv-modules . +$ltcmd ./gedcom-check $* +result=$? +rm gedcom.enc +rm new.ged +rm ANSI_Z39.47.so +rm gconv-modules +exit $result -- 2.30.2