|
Namazu for hns による簡易全文検索 詳しくは 詳細指定/ヘルプを参照して下さい |
|||||||||||||||||||||||||||||||||||||||||||||||||
2004年07月06日(火) 旧暦 [n年日記]#1 [CVS][Namazu] namazu の自分用の CVS 保管庫を作って見る
294 8:06 mkdir cvsroot/hoge
296 8:06 mkdir cvs-work
297 8:07 cvs -d /foo/cvsroot co hoge
302 8:07 cd cvs-work/
303 8:07 cvs -d /foo/cvsroot co -d . hoge
306 8:08 tar zxf /bar/distfiles/namazu-2.0.13-1.tar.gz
310 8:10 patch -s -p0 < /bar/distfiles/namazu-2.0.13-de.diff
320 8:28 find . -type d | awk '\!/CVS/ {print "cvs add",$1}' | sh
322 8:29 find . -type f | awk '\!/CVS/ {print "cvs add",$1}' | sh
323 8:30 cat ~/.cvsrc
324 8:31 cvs commit -m 'initial check in'
329 8:50 mkdir work
330 8:50 cd work/
331 8:50 ../namazu-2.0.13/configure
332 8:54 make
333 9:37 make check
VPATH って使えなかったかなぁ。それとも cvs の操作誤り ?
PASS: namazu-12 .: Can't open ./commonfuncs FAIL: namazu-cgi-1「VPATH が使えない」方に一票。 @ Makefile を変更する:
TESTS_ENVIRONMENT = top_srcdir=$(top_srcdir) top_builddir=$(top_builddir) \
pkgdatadir=$(top_srcdir) MKNMZNORC= NAMAZUNORC=ALL \
VPATH=$(VPATH)
@ Makefile.am なら次のようにする:
ttype:makoto@harry 11:10:15/040706(...namazu-2.0.13/tests)> cvs diff Makefile.am
Index: Makefile.am
===================================================================
RCS file: /e/serv/cvsroot/dri/namazu-2.0.13/tests/Makefile.am,v
retrieving revision 1.1
diff -u -r1.1 Makefile.am
--- Makefile.am 5 Jul 2004 23:42:15 -0000 1.1
+++ Makefile.am 6 Jul 2004 02:10:05 -0000
@@ -3,7 +3,8 @@
SUBDIRS = data
TESTS_ENVIRONMENT = top_srcdir=$(top_srcdir) top_builddir=$(top_builddir) \
- pkgdatadir=$(top_srcdir) MKNMZNORC= NAMAZUNORC=ALL
+ pkgdatadir=$(top_srcdir) MKNMZNORC= NAMAZUNORC=ALL \
+ VPATH=${VPATH}
TESTS = mknmz-1 mknmz-2 mknmz-3 mknmz-4 mknmz-5 \
mknmz-6 mknmz-7 mknmz-8 mknmz-9 mknmz-10 \
@ tests/namazu-cgi-1 などを全て変更する:
Index: tests/namazu-cgi-1
===================================================================
RCS file: /cvsroot/dri/namazu-2.0.13/tests/namazu-cgi-1,v
retrieving revision 1.1
diff -u -r1.1 namazu-cgi-1
--- tests/namazu-cgi-1 5 Jul 2004 23:42:19 -0000 1.1
+++ tests/namazu-cgi-1 6 Jul 2004 02:07:57 -0000
@@ -4,7 +4,7 @@
#
LOG=`pwd`/test-log
echo ' *** starting ' $0 >>$LOG
-. ./commonfuncs
+. ${VPATH}/commonfuncs
docnum=`perl -lne 'print $1 if /^files (\d+)/' "idx1/NMZ.status"`
これでいいみたい:
ttype:makoto@harry 11:29:49/040706(...dri/work)> env LANG=japanese make check ... =================== All 47 tests passed =================== Making check in template Making check in contrib(もっとも Makefile.in, Makefile は手で直している)。 ( つっこみ )
|
最近の日記 2025年10月25日 ・recover from disk error 2025年10月23日 ・dd does not duplicate Windows 11 boot disk ? 2025年10月13日 ・missing package 2025年10月04日 ・pkgin search pkgname segfaults 2025年08月16日 ・installboot (Although it’s too late) | ||