hns - 日記自動生成システム - Version 2.19.9

先月 2004年07月 来月
1 2 3
4 5 6 7 8 9 10
11 12 13 14 15 16 17
18 19 20 21 22 23 24
25 26 27 28 29 30 31
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 は手で直している)。



最近の日記
2024年03月10日
停電 (瞬電)
2024年03月03日
the second try on bare-metal
useradd
2024年02月29日
opendkim and senmail
2024年01月24日
chat/iam 0.0.8
2024年01月21日
uselocale vs setlocale (textproc/R-readxl)
以上、1 日分です。
タイトル一覧
カテゴリ分類
Powered by hns-2.19.9, HyperNikkiSystem Project

Count.cgi (since 2000/02/05)