From: Peter Verthez Date: Sat, 4 Jan 2003 14:45:44 +0000 (+0000) Subject: Added shell script to test program before installation. X-Git-Url: https://git.dlugolecki.net.pl/?a=commitdiff_plain;h=b5c4df4099d04b2d2d5c63054fe31956372f12da;p=gedcom-parse.git Added shell script to test program before installation. --- 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