Added shell script to test program before installation.
authorPeter Verthez <Peter.Verthez@advalvas.be>
Sat, 4 Jan 2003 14:45:44 +0000 (14:45 +0000)
committerPeter Verthez <Peter.Verthez@advalvas.be>
Sat, 4 Jan 2003 14:45:44 +0000 (14:45 +0000)
bin/Makefile.am
bin/gedcom-check.sh [new file with mode: 0755]

index 53e9b0758d482a295a1e6f7e639407b9dca8b8c2..80b3059b35c4b27385b82b7c37a613b646e4aef8 100644 (file)
@@ -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 (executable)
index 0000000..8907165
--- /dev/null
@@ -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