Namazu-devel-ja(旧)


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: (VPATH) nmz/i18n.h:8: libintl.h: No such file or directory



>                                            千葉市中央区長洲
>                                                    藤原  誠
失敗。修正内容を付けるのを忘れてしまいました。
Index: namazu-2.0.7/nmz/Makefile.am
===================================================================
RCS file: /automount/nazuha/cvs/namazu-stable/nmz/Makefile.am,v
retrieving revision 1.1.1.1
diff -u -u -r1.1.1.1 Makefile.am
--- namazu-2.0.7/nmz/Makefile.am	2001/09/07 07:59:10	1.1.1.1
+++ namazu-2.0.7/nmz/Makefile.am	2001/09/07 08:07:14
@@ -18,7 +18,7 @@
        -DHAVE_SUPPORT_H -DNO_ALLOCA \
        @DEFS@
 INCLUDES = -I$(srcdir) -I.. -I$(srcdir)/../lib -I$(srcdir)/../src \
-	-I$(srcdir)/../intl -I$(srcdir)/../nmz
+	-I$(top_builddir)/../intl -I$(srcdir)/../nmz
 
 pkginclude_HEADERS = codeconv.h field.h hlist.h i18n.h idxname.h \
 	libnamazu.h l10n-ja.h parser.h query.h re.h regex.h \
Index: namazu-2.0.7/src/Makefile.am
===================================================================
RCS file: /automount/nazuha/cvs/namazu-stable/src/Makefile.am,v
retrieving revision 1.1.1.1
diff -u -u -r1.1.1.1 Makefile.am
--- namazu-2.0.7/src/Makefile.am	2001/09/07 07:59:11	1.1.1.1
+++ namazu-2.0.7/src/Makefile.am	2001/09/07 08:08:03
@@ -22,7 +22,7 @@
        -DOPT_INDEXDIR=\"$(indexdir)\" \
        -DHAVE_SUPPORT_H \
        @DEFS@
-INCLUDES  = -I.. -I$(srcdir)/../intl -I$(srcdir)/../lib -I$(srcdir)/../nmz
+INCLUDES  = -I.. -I$(top_builddir)/../intl -I$(srcdir)/../lib -I$(srcdir)/../nmz
 LDADD = @INTLLIBS@ $(top_builddir)/nmz/libnmz.la $(top_builddir)/lib/libnmzut.a 
 
 common_SOURCES = form.c form.h message.h \
Index: namazu-2.0.7/tests/Makefile.am
===================================================================
RCS file: /automount/nazuha/cvs/namazu-stable/tests/Makefile.am,v
retrieving revision 1.1.1.1
diff -u -u -r1.1.1.1 Makefile.am
--- namazu-2.0.7/tests/Makefile.am	2001/09/07 07:59:12	1.1.1.1
+++ namazu-2.0.7/tests/Makefile.am	2001/09/07 09:11:56
@@ -2,20 +2,49 @@
 AUTOMAKE_OPTIONS = 1.4 no-dependencies
 SUBDIRS = data
 
-TESTS =	mknmz-1 mknmz-2 mknmz-3 mknmz-4 mknmz-5 \
-	mknmz-6 mknmz-7 mknmz-8 mknmz-9 mknmz-10 \
-	mknmz-11 mknmz-12 mknmz-13 mknmz-14 mknmz-15 \
-	mknmz-16 \
-	gcnmz-1 \
-	idxdiff-1 idxdiff-2 idxdiff-3 \
-	namazu-1 namazu-2 namazu-3 namazu-4 namazu-5 \
-	namazu-6 namazu-7 namazu-8 namazu-9 namazu-10 \
-	namazu-11 \
-	namazu-cgi-1 namazu-cgi-2 namazu-cgi-3 namazu-cgi-4 \
-	namazu-cgi-5 namazu-cgi-6 namazu-cgi-7 \
-	ja-mknmz-1 ja-namazu-cgi-1
+TESTS = \
+	$(srcdir)/mknmz-1 \
+	$(srcdir)/mknmz-2 \
+	$(srcdir)/mknmz-3 \
+	$(srcdir)/mknmz-4 \
+	$(srcdir)/mknmz-5 \
+	$(srcdir)/mknmz-6 \
+	$(srcdir)/mknmz-7 \
+	$(srcdir)/mknmz-8 \
+	$(srcdir)/mknmz-9 \
+	$(srcdir)/mknmz-10 \
+	$(srcdir)/mknmz-11 \
+	$(srcdir)/mknmz-12 \
+	$(srcdir)/mknmz-13 \
+	$(srcdir)/mknmz-14 \
+	$(srcdir)/mknmz-15 \
+	$(srcdir)/mknmz-16 \
+	$(srcdir)/gcnmz-1 \
+	$(srcdir)/idxdiff-1 \
+	$(srcdir)/idxdiff-2 \
+	$(srcdir)/idxdiff-3 \
+	$(srcdir)/namazu-1 \
+	$(srcdir)/namazu-2 \
+	$(srcdir)/namazu-3 \
+	$(srcdir)/namazu-4 \
+	$(srcdir)/namazu-5 \
+	$(srcdir)/namazu-6 \
+	$(srcdir)/namazu-7 \
+	$(srcdir)/namazu-8 \
+	$(srcdir)/namazu-9 \
+	$(srcdir)/namazu-10 \
+	$(srcdir)/namazu-11 \
+	$(srcdir)/namazu-cgi-1 \
+	$(srcdir)/namazu-cgi-2 \
+	$(srcdir)/namazu-cgi-3 \
+	$(srcdir)/namazu-cgi-4 \
+	$(srcdir)/namazu-cgi-5 \
+	$(srcdir)/namazu-cgi-6 \
+	$(srcdir)/namazu-cgi-7 \
+	$(srcdir)/ja-mknmz-1 \
+	$(srcdir)/ja-namazu-cgi-1
 
 clean-local:
 	rm -rf test-log tmp-data tmp.* idx[0-9]* ja-idx[0-9]*
 
-EXTRA_DIST = $(TESTS) select-data
+EXTRA_DIST = $(TESTS) $(top_srcdir)/select-data
Index: namazu-2.0.7/tests/gcnmz-1
===================================================================
RCS file: /automount/nazuha/cvs/namazu-stable/tests/gcnmz-1,v
retrieving revision 1.1.1.1
diff -u -u -r1.1.1.1 gcnmz-1
--- namazu-2.0.7/tests/gcnmz-1	2001/09/07 07:59:12	1.1.1.1
+++ namazu-2.0.7/tests/gcnmz-1	2001/09/07 11:47:30
@@ -3,7 +3,7 @@
 # Test for gcnmz.
 #
 LOG=`pwd`/test-log
-TARGET=`./select-data`
+TARGET=`$srcdir/select-data`
 TMPDATA=`pwd`/tmp-data
 
 if test ! -d idx5; then
Index: namazu-2.0.7/tests/ja-mknmz-1
===================================================================
RCS file: /automount/nazuha/cvs/namazu-stable/tests/ja-mknmz-1,v
retrieving revision 1.1.1.1
diff -u -u -r1.1.1.1 ja-mknmz-1
--- namazu-2.0.7/tests/ja-mknmz-1	2001/09/07 07:59:12	1.1.1.1
+++ namazu-2.0.7/tests/ja-mknmz-1	2001/09/10 01:13:03
@@ -3,7 +3,7 @@
 # Test for Japanese encoding
 #
 LOG=`pwd`/test-log
-TARGET=`pwd`/data/ja-spec
+TARGET=$srcdir/data/ja-spec
 IDX=ja-idx1
 
 EXEC=no
@@ -24,6 +24,5 @@
     rm -f $IDX/NMZ.*
 fi
 
-cd ../scripts
-./mknmz -O ../tests/$IDX $TARGET >> $LOG
+../scripts/mknmz -O $IDX $TARGET >> $LOG
 exit $?
Index: namazu-2.0.7/tests/mknmz-1
===================================================================
RCS file: /automount/nazuha/cvs/namazu-stable/tests/mknmz-1,v
retrieving revision 1.1.1.1
diff -u -u -r1.1.1.1 mknmz-1
--- namazu-2.0.7/tests/mknmz-1	2001/09/07 07:59:12	1.1.1.1
+++ namazu-2.0.7/tests/mknmz-1	2001/09/10 00:14:41
@@ -2,9 +2,12 @@
 #
 # Test for simple indexing.
 #
-LOG=`pwd`/test-log
-TARGET=`./select-data`
+# LOG=`pwd`/test-log
+# echo srcdir=$srcdir
 
+# return data/en or data/ja depending environment
+TARGET=`$srcdir/select-data`
+
 if test ! -d idx1; then
     mkdir idx1
 else
@@ -12,6 +15,5 @@
 fi
 
 # Simple indexing.
-cd ../scripts 
-./mknmz -O ../tests/idx1 $TARGET >> $LOG
+../scripts/mknmz -O idx1 $TARGET >> ./test-log
 exit $?
Index: namazu-2.0.7/tests/mknmz-10
===================================================================
RCS file: /automount/nazuha/cvs/namazu-stable/tests/mknmz-10,v
retrieving revision 1.1.1.1
diff -u -u -r1.1.1.1 mknmz-10
--- namazu-2.0.7/tests/mknmz-10	2001/09/07 07:59:12	1.1.1.1
+++ namazu-2.0.7/tests/mknmz-10	2001/09/10 00:16:11
@@ -3,8 +3,8 @@
 # Test for priority of mknmzrc and command line option.
 #
 
-LOG=`pwd`/test-log
-TARGET=`./select-data`
+LOG=test-log
+TARGET=`$srcdir/select-data`
 
 if test ! -d idx12; then
     mkdir idx12
@@ -22,12 +22,12 @@
 tmprc="$HOME/.mknmzrc"
 echo '$conf::ALLOW_FILE=".*\\.txt"' > $tmprc
 
-cd ../scripts
-./mknmz -O ../tests/idx12 $TARGET >> $LOG 2>&1
-./mknmz --allow='.*\.html' -O ../tests/idx13 $TARGET >> $LOG 2>&1
+
+../scripts/mknmz -O                    idx12 $TARGET >> $LOG 2>&1
+../scripts/mknmz --allow='.*\.html' -O idx13 $TARGET >> $LOG 2>&1
 rm $tmprc
-grep -v '\.txt' ../tests/idx12/NMZ.field.uri >> $LOG && exit 1
-grep '\.txt' ../tests/idx12/NMZ.field.uri >> $LOG || exit $?
-grep -v '\.html' ../tests/idx13/NMZ.field.uri >> $LOG && exit 1
-grep '\.html' ../tests/idx13/NMZ.field.uri >> $LOG
+grep -v '\.txt'  idx12/NMZ.field.uri >> $LOG && exit 1
+grep '\.txt'     idx12/NMZ.field.uri >> $LOG || exit $?
+grep -v '\.html' idx13/NMZ.field.uri >> $LOG && exit 1
+grep '\.html'    idx13/NMZ.field.uri >> $LOG
 exit $?
Index: namazu-2.0.7/tests/mknmz-11
===================================================================
RCS file: /automount/nazuha/cvs/namazu-stable/tests/mknmz-11,v
retrieving revision 1.1.1.1
diff -u -u -r1.1.1.1 mknmz-11
--- namazu-2.0.7/tests/mknmz-11	2001/09/07 07:59:12	1.1.1.1
+++ namazu-2.0.7/tests/mknmz-11	2001/09/10 00:16:45
@@ -4,9 +4,14 @@
 #
 
 LOG=`pwd`/test-log
-TARGET=`pwd`/data/symlink
+DATA=`pwd`/data
+TARGET=$DATA/symlink
 IDXDIR=idx14
 
+if test ! -d $DATA; then
+   mkdir $DATA
+fi
+
 if test ! -d $IDXDIR; then
     mkdir $IDXDIR
 else
@@ -14,12 +19,12 @@
 fi
 
 if test ! -h $TARGET; then
-    ln -s `pwd`/data/en $TARGET
+    ln -s ../$srcdir/data/en $TARGET
 fi
-TXTCOUNT=`ls ./data/symlink/*.txt|wc -l`
+TXTCOUNT=`ls $TARGET/*.txt|wc -l`
+
 
-cd ../scripts
-./mknmz --allow='.*.txt' -O ../tests/$IDXDIR $TARGET >> $LOG 2>&1
-RESULTCOUNT=`wc -l < ../tests/$IDXDIR/NMZ.field.uri`
+../scripts/mknmz --allow='.*.txt' -O $IDXDIR $TARGET >> $LOG 2>&1
+RESULTCOUNT=`wc -l < $IDXDIR/NMZ.field.uri`
 test $TXTCOUNT -eq $RESULTCOUNT
 exit $?
Index: namazu-2.0.7/tests/mknmz-12
===================================================================
RCS file: /automount/nazuha/cvs/namazu-stable/tests/mknmz-12,v
retrieving revision 1.1.1.1
diff -u -u -r1.1.1.1 mknmz-12
--- namazu-2.0.7/tests/mknmz-12	2001/09/07 07:59:12	1.1.1.1
+++ namazu-2.0.7/tests/mknmz-12	2001/09/10 00:41:00
@@ -4,10 +4,10 @@
 #
 
 LOG=`pwd`/test-log
-TARGET=`pwd`/data/filter
+TARGET=$srcdir/data/filter/  # from script
 IDXDIR=idx15
-TXTCOUNT=`ls ./data/filter/*.txt|wc -l`
-FDIR=`pwd`/data/filter
+TXTCOUNT=`ls $srcdir/data/filter/*.txt|wc -l`
+FDIR=$srcdir/data/filter
 MKNMZRC=`pwd`/mknmzrc-mknmz12
 export MKNMZRC
 
@@ -17,15 +17,26 @@
     rm -f $IDXDIR/NMZ.*
 fi
 
-cd ../scripts
-echo "package conf; \$FILTERDIR='$FDIR'; 1;" > ../tests/mknmzrc-mknmz12
-RESULTCOUNT=`./mknmz -C|egrep x-test|wc -l`
-rm -f ../tests/mknmzrc-mknmz12
+# to refer ../filter for VPATH env
+if test  !    -r ../filter/html.pl; then
+   ln -s $srcdir/../filter/html.pl    ../filter
+fi
+if test ! -r      ../filter/gfilter.pl; then
+    ln -s $srcdir/../filter/gfilter.pl ../filter
+fi
+
+echo "package conf; \$FILTERDIR='$FDIR'; 1;" > mknmzrc-mknmz12
+RESULTCOUNT=`../scripts/mknmz -C|egrep x-test|wc -l`
+rm -f mknmzrc-mknmz12
 test $RESULTCOUNT -eq 1 || exit $?
+
+echo "package conf; \$FILTERDIR='$FDIR'; 1;" > mknmzrc-mknmz12
+if  test ! -d $IDXDIR; then 
+    mkdir     $IDXDIR
+fi
 
-echo "package conf; \$FILTERDIR='$FDIR'; 1;" > ../tests/mknmzrc-mknmz12
-./mknmz --allow='.*.txt' -O ../tests/$IDXDIR $TARGET >> $LOG 2>&1
-rm -f ../tests/mknmzrc-mknmz12
-RESULTCOUNT=`wc -l < ../tests/$IDXDIR/NMZ.field.uri`
+../scripts/mknmz --allow='.*.txt' -O $IDXDIR $TARGET >> $LOG 2>&1
+rm -f mknmzrc-mknmz12
+RESULTCOUNT=`wc -l < $IDXDIR/NMZ.field.uri`
 test $TXTCOUNT -eq $RESULTCOUNT
 exit $?
Index: namazu-2.0.7/tests/mknmz-14
===================================================================
RCS file: /automount/nazuha/cvs/namazu-stable/tests/mknmz-14,v
retrieving revision 1.1.1.1
diff -u -u -r1.1.1.1 mknmz-14
--- namazu-2.0.7/tests/mknmz-14	2001/09/07 07:59:12	1.1.1.1
+++ namazu-2.0.7/tests/mknmz-14	2001/09/10 00:18:42
@@ -3,7 +3,7 @@
 # Test for emphasized keyword.
 #
 LOG=`pwd`/test-log
-TARGET=`pwd`/data/emphasize
+TARGET=$srcdir/data/emphasize
 IDX=idx17
 
 if test ! -d $IDX; then
@@ -13,6 +13,5 @@
 fi
 
 # Simple indexing.
-cd ../scripts
-./mknmz -O ../tests/$IDX $TARGET >> $LOG
+../scripts/mknmz -O $IDX $TARGET >> $LOG
 exit $?
Index: namazu-2.0.7/tests/mknmz-15
===================================================================
RCS file: /automount/nazuha/cvs/namazu-stable/tests/mknmz-15,v
retrieving revision 1.1.1.1
diff -u -u -r1.1.1.1 mknmz-15
--- namazu-2.0.7/tests/mknmz-15	2001/09/07 07:59:12	1.1.1.1
+++ namazu-2.0.7/tests/mknmz-15	2001/09/10 00:19:06
@@ -3,7 +3,7 @@
 # Test for duplicated field.
 #
 LOG=`pwd`/test-log
-TARGET=`pwd`/data/dup-field
+TARGET=$srcdir/data/dup-field
 IDX=idx18
 CONF=`pwd`/tmp.mknmzrc
 
@@ -17,10 +17,9 @@
 echo '$SEARCH_FIELD = "keywords|message-id|subject|from|date|uri|newsgroups|to|summary|size";' >> $CONF
 echo '$META_TAGS = "keywords|description";' >> $CONF
 
-cd ../scripts
-./mknmz --meta -f $CONF -O ../tests/$IDX $TARGET > $LOG 2>&1
+../scripts/mknmz --meta -f $CONF -O $IDX $TARGET > $LOG 2>&1
 
-COUNT=`egrep 'test' ../tests/$IDX/NMZ.field.keywords|wc -l`
+COUNT=`egrep 'test' $IDX/NMZ.field.keywords|wc -l`
 
 if [ $COUNT -ne 1 ]
 then
Index: namazu-2.0.7/tests/mknmz-16
===================================================================
RCS file: /automount/nazuha/cvs/namazu-stable/tests/mknmz-16,v
retrieving revision 1.1.1.1
diff -u -u -r1.1.1.1 mknmz-16
--- namazu-2.0.7/tests/mknmz-16	2001/09/07 07:59:12	1.1.1.1
+++ namazu-2.0.7/tests/mknmz-16	2001/09/10 00:19:20
@@ -24,7 +24,6 @@
     echo "namazu $i" > $TMPDATA/$i.txt
 done
 
-cd ../scripts
-./mknmz -O ../tests/$IDX $TMPDATA > $LOG 2>&1
+../scripts/mknmz -O $IDX $TMPDATA > $LOG 2>&1
 
 exit 0
Index: namazu-2.0.7/tests/mknmz-2
===================================================================
RCS file: /automount/nazuha/cvs/namazu-stable/tests/mknmz-2,v
retrieving revision 1.1.1.1
diff -u -u -r1.1.1.1 mknmz-2
--- namazu-2.0.7/tests/mknmz-2	2001/09/07 07:59:12	1.1.1.1
+++ namazu-2.0.7/tests/mknmz-2	2001/09/10 00:37:27
@@ -3,7 +3,7 @@
 # Test for incremental indexing.
 #
 LOG=`pwd`/test-log
-TARGET=`./select-data`
+TARGET=`$srcdir/select-data`
 
 if test ! -d idx2; then
     mkdir idx2
@@ -11,11 +11,10 @@
     rm -f idx2/NMZ.*
 fi
 
-cd ../scripts
-targets=`cat ../tests/idx1/NMZ.field.uri`
+targets=`cat idx1/NMZ.field.uri`
 
 for target in $targets; do
-   ./mknmz --no-delete -O ../tests/idx2 $target \
+   ../scripts/mknmz --no-delete -O idx2 $target \
 	>> $LOG
     test "$?" != "0" && exit 1  # error if not success
 done;
Index: namazu-2.0.7/tests/mknmz-3
===================================================================
RCS file: /automount/nazuha/cvs/namazu-stable/tests/mknmz-3,v
retrieving revision 1.1.1.1
diff -u -u -r1.1.1.1 mknmz-3
--- namazu-2.0.7/tests/mknmz-3	2001/09/07 07:59:12	1.1.1.1
+++ namazu-2.0.7/tests/mknmz-3	2001/09/10 00:20:04
@@ -3,7 +3,7 @@
 # Test for indexing with --checkpoint and $ON_MEMORY_MAX is 0.
 #
 LOG=`pwd`/test-log
-TARGET=`./select-data`
+TARGET=`$srcdir/select-data`
 
 if test ! -d idx3; then
     mkdir idx3
@@ -16,8 +16,7 @@
 echo '$conf::ON_MEMORY_MAX=0' > $tmprc
 
 # Simple indexing
-cd ../scripts 
-./mknmz --checkpoint -f $tmprc -O ../tests/idx3 $TARGET >> $LOG
+../scripts/mknmz --checkpoint -f $tmprc -O idx3 $TARGET >> $LOG
 rm -f $tmprc
 
 exit $?
Index: namazu-2.0.7/tests/mknmz-4
===================================================================
RCS file: /automount/nazuha/cvs/namazu-stable/tests/mknmz-4,v
retrieving revision 1.1.1.1
diff -u -u -r1.1.1.1 mknmz-4
--- namazu-2.0.7/tests/mknmz-4	2001/09/07 07:59:12	1.1.1.1
+++ namazu-2.0.7/tests/mknmz-4	2001/09/10 00:41:37
@@ -3,7 +3,7 @@
 # Test for deleting documents in an index.
 #
 LOG=`pwd`/test-log
-TARGET=`./select-data`
+TARGET=`$srcdir/select-data`
 
 if test ! -d idx4; then
     mkdir idx4
@@ -19,11 +19,10 @@
 cp -rp $TARGET tmp-data
 
 # Simple indexing.
-cd ../scripts 
-./mknmz -O ../tests/idx4 $TMPDATA >> $LOG
+../scripts/mknmz -O idx4 $TMPDATA >> $LOG
 test "$?" != "0" && exit 1  # error if not success
 
-prevdocnum=`perl -lne 'print $1 if /^files (\d+)/' ../tests/idx4/NMZ.status`
+prevdocnum=`perl -lne 'print $1 if /^files (\d+)/' idx4/NMZ.status`
 
 # Remove some documents.
 cd $TMPDATA
@@ -31,11 +30,10 @@
 cd ../
 
 # Update the index.
-cd ../scripts 
-./mknmz --update=../tests/idx4 >> $LOG
+../scripts/mknmz --update=idx4 >> $LOG
 test "$?" != "0" && exit 1  # error if not success
 
-postdocnum=`perl -lne 'print $1 if /^files (\d+)/' ../tests/idx4/NMZ.status`
+postdocnum=`perl -lne 'print $1 if /^files (\d+)/' idx4/NMZ.status`
 
 echo "predocnum:" $prevdocnum, "postdocnum:" $postdocnum >> $LOG
 test $prevdocnum -le $postdocnum && exit 1  # error if prev <= post
Index: namazu-2.0.7/tests/mknmz-5
===================================================================
RCS file: /automount/nazuha/cvs/namazu-stable/tests/mknmz-5,v
retrieving revision 1.1.1.1
diff -u -u -r1.1.1.1 mknmz-5
--- namazu-2.0.7/tests/mknmz-5	2001/09/07 07:59:12	1.1.1.1
+++ namazu-2.0.7/tests/mknmz-5	2001/09/10 00:21:58
@@ -3,7 +3,7 @@
 # Test for updating documents in an index.
 #
 LOG=`pwd`/test-log
-TARGET=`./select-data`
+TARGET=`$srcdir/select-data`
 TMPDATA=`pwd`/tmp-data
 
 if test ! -d idx7; then
@@ -19,11 +19,11 @@
 cp -rp $TARGET tmp-data
 
 # Simple indexing.
-cd ../scripts 
-./mknmz -O ../tests/idx7 $TMPDATA >> $LOG
+
+../scripts/mknmz -O idx7 $TMPDATA >> $LOG
 test "$?" != "0" && exit 1  # error if not success
 
-prevdocnum=`perl -lne 'print $1 if /^files (\d+)/' ../tests/idx7/NMZ.status`
+prevdocnum=`perl -lne 'print $1 if /^files (\d+)/' idx7/NMZ.status`
 
 # Update some documents. Add `xyzzy' to each document.
 cd $TMPDATA
@@ -32,11 +32,11 @@
 cd ../
 
 # Update the index.
-cd ../scripts 
-./mknmz --update=../tests/idx7 >> $LOG
+
+../scripts/mknmz --update=idx7 >> $LOG
 test "$?" != "0" && exit 1  # error if not success
 
-postdocnum=`perl -lne 'print $1 if /^files (\d+)/' ../tests/idx7/NMZ.status`
+postdocnum=`perl -lne 'print $1 if /^files (\d+)/' idx7/NMZ.status`
 
 echo "predocnum:" $prevdocnum, "postdocnum:" $postdocnum >> $LOG
 test $prevdocnum != $postdocnum && exit 1  # error if prev != post
Index: namazu-2.0.7/tests/mknmz-6
===================================================================
RCS file: /automount/nazuha/cvs/namazu-stable/tests/mknmz-6,v
retrieving revision 1.1.1.1
diff -u -u -r1.1.1.1 mknmz-6
--- namazu-2.0.7/tests/mknmz-6	2001/09/07 07:59:12	1.1.1.1
+++ namazu-2.0.7/tests/mknmz-6	2001/09/10 00:22:15
@@ -3,7 +3,7 @@
 # Make an index for testing query operations.
 #
 LOG=`pwd`/test-log
-TARGET=`pwd`/data/query
+TARGET=$srcdir/data/query
 
 if test ! -d idx8; then
     mkdir idx8
@@ -12,6 +12,5 @@
 fi
 
 # Simple indexing.
-cd ../scripts 
-./mknmz -O ../tests/idx8 $TARGET >> $LOG
+../scripts/mknmz -O idx8 $TARGET >> $LOG
 exit $?
Index: namazu-2.0.7/tests/mknmz-7
===================================================================
RCS file: /automount/nazuha/cvs/namazu-stable/tests/mknmz-7,v
retrieving revision 1.1.1.1
diff -u -u -r1.1.1.1 mknmz-7
--- namazu-2.0.7/tests/mknmz-7	2001/09/07 07:59:12	1.1.1.1
+++ namazu-2.0.7/tests/mknmz-7	2001/09/10 00:22:28
@@ -3,7 +3,7 @@
 # Test for mknmz's --html-split option.
 #
 LOG=`pwd`/test-log
-TARGET=`pwd`/data/html-split
+TARGET=$srcdir/data/html-split
 
 if test ! -d idx9; then
     mkdir idx9
@@ -12,7 +12,7 @@
 fi
 
 # Indexing with --html-split option.
-cd ../scripts 
-./mknmz --html-split -O ../tests/idx9 $TARGET >> $LOG
+
+../scripts/mknmz --html-split -O idx9 $TARGET >> $LOG
 exit $?
 
Index: namazu-2.0.7/tests/mknmz-8
===================================================================
RCS file: /automount/nazuha/cvs/namazu-stable/tests/mknmz-8,v
retrieving revision 1.1.1.1
diff -u -u -r1.1.1.1 mknmz-8
--- namazu-2.0.7/tests/mknmz-8	2001/09/07 07:59:12	1.1.1.1
+++ namazu-2.0.7/tests/mknmz-8	2001/09/10 00:24:00
@@ -3,7 +3,7 @@
 # Test for mknmz's --html-split option with updating.
 #
 LOG=`pwd`/test-log
-TARGET=`pwd`/data/html-split
+TARGET=$srcdir/data/html-split
 
 if test ! -d idx10; then
     mkdir idx10
@@ -19,40 +19,36 @@
 cp -rp $TARGET tmp-data
 
 # Index with --html-split option.
-cd ../scripts 
-./mknmz --html-split -O ../tests/idx10 $TMPDATA >> $LOG
+../scripts/mknmz --html-split -O idx10 $TMPDATA >> $LOG
 test "$?" != "0" && exit 1  # error if not success
-origdocnum=`./gtnmz ../tests/idx10/NMZ.r`
+origdocnum=`../scripts/gtnmz idx10/NMZ.r`
 
 # Update 1.html.
 perl -i -pe s/xyzzy// $TMPDATA/1.html
 echo amarok >> $TMPDATA/1.html
 
 # Update the index with --html-split option.
-cd ../scripts 
-./mknmz --update=../tests/idx10 >> $LOG
+../scripts/mknmz --update=idx10 >> $LOG
 test "$?" != "0" && exit 1  # error if not success
-docnum=`./gtnmz ../tests/idx10/NMZ.r`
+docnum=`../scripts/gtnmz idx10/NMZ.r`
 test $docnum != $origdocnum && exit 1  # error if not equal
 
 # Remove 2.html.
 rm $TMPDATA/2.html
 
 # Update the index with --html-split option.
-cd ../scripts 
-./mknmz --update=../tests/idx10 >> $LOG
+../scripts//mknmz --update=idx10 >> $LOG
 test "$?" != "0" && exit 1  # error if not success
-docnum=`./gtnmz ../tests/idx10/NMZ.r`
+docnum=`../scripts/gtnmz idx10/NMZ.r`
 docnum2=`expr $docnum + $docnum`
 test $docnum2 != $origdocnum && exit 1  # error if not equal
 
 # Nothing changed.
 
 # Update the index with --html-split option.
-cd ../scripts 
-./mknmz --update=../tests/idx10 >> $LOG
+../scripts/mknmz --update=idx10 >> $LOG
 test "$?" != "0" && exit 1  # error if not success
-docnum=`./gtnmz ../tests/idx10/NMZ.r`
+docnum=`../scripts/gtnmz idx10/NMZ.r`
 docnum2=`expr $docnum + $docnum`
 test $docnum2 != $origdocnum && exit 1  # error if not equal
 
Index: namazu-2.0.7/tests/mknmz-9
===================================================================
RCS file: /automount/nazuha/cvs/namazu-stable/tests/mknmz-9,v
retrieving revision 1.1.1.1
diff -u -u -r1.1.1.1 mknmz-9
--- namazu-2.0.7/tests/mknmz-9	2001/09/07 07:59:12	1.1.1.1
+++ namazu-2.0.7/tests/mknmz-9	2001/09/10 00:24:26
@@ -4,7 +4,7 @@
 #
 
 LOG=`pwd`/test-log
-TARGET=`./select-data`
+TARGET=`$srcdir/select-data`
 
 if test ! -d idx11; then
     mkdir idx11
@@ -12,18 +12,17 @@
     rm -f idx11/NMZ.*
 fi
 
-cd ../scripts
-./mknmz -O ../tests/idx11 $TARGET >> $LOG 2>&1 &
+../scripts/mknmz -O idx11 $TARGET >> $LOG 2>&1 &
 
 i=20
 while test $i -gt 0
 do {
     i=`expr $i - 1`
-    if test -r ../tests/idx11/NMZ.lock2
+    if test -r idx11/NMZ.lock2
     then {
-        kill -TERM `cat ../tests/idx11/NMZ.lock2`
+        kill -TERM `cat idx11/NMZ.lock2`
         wait
-        grep '^\[Base\]' ../tests/idx11/NMZ.log >> $LOG && exit 0
+        grep '^\[Base\]' idx11/NMZ.log >> $LOG && exit 0
         exit 1
     }
     fi
Index: namazu-2.0.7/tests/namazu-6
===================================================================
RCS file: /automount/nazuha/cvs/namazu-stable/tests/namazu-6,v
retrieving revision 1.1.1.1
diff -u -u -r1.1.1.1 namazu-6
--- namazu-2.0.7/tests/namazu-6	2001/09/07 07:59:12	1.1.1.1
+++ namazu-2.0.7/tests/namazu-6	2001/09/07 12:39:57
@@ -19,7 +19,7 @@
 M123="$TMP.123"    # 1.txt and 2.txt 3.txt
 
 cat /dev/null > $M0
-head -1 $IDX/NMZ.r > $M1
+head -1  $IDX/NMZ.r > $M1
 head -2  $IDX/NMZ.r | tail -1 > $M2
 head -3  $IDX/NMZ.r | tail -1 > $M3
 
Index: namazu-2.0.7/tests/select-data
===================================================================
RCS file: /automount/nazuha/cvs/namazu-stable/tests/select-data,v
retrieving revision 1.1.1.1
diff -u -u -r1.1.1.1 select-data
--- namazu-2.0.7/tests/select-data	2001/09/07 07:59:12	1.1.1.1
+++ namazu-2.0.7/tests/select-data	2001/09/09 23:34:19
@@ -4,6 +4,7 @@
 #
 
 base=`pwd`/data
+base=$srcdir/data
 
 for lang in "$LC_ALL" "$LC_CTYPE" "$LANG"; do
     cand=`echo "$lang" | perl -nle 'print $1 if /^(..)/'`