[w3m-dev 03819] support cd build && ../configure

* Makefile.in: add VPATH
		add MV
		use $(top_srcdir), $<, $@
* acinclude.m4 (AC_W3M_VERSION): use $srcdir
* configure.in (AC_W3M_VERSION): move
* mktable.c (main): basename
From: Fumitoshi UKAI  <ukai@debian.or.jp>
This commit is contained in:
Fumitoshi UKAI
2003-03-12 18:27:03 +00:00
parent f87fd4e2b7
commit 33ddf9cdfc
7 changed files with 212 additions and 175 deletions

View File

@@ -1,4 +1,4 @@
/* $Id: mktable.c,v 1.11 2002/12/24 17:20:47 ukai Exp $ */
/* $Id: mktable.c,v 1.12 2003/03/12 18:27:07 ukai Exp $ */
#include <stdio.h>
#include <stdlib.h>
#include "myctype.h"
@@ -48,7 +48,10 @@ main(int argc, char *argv[], char **envp)
fprintf(stderr, "Can't open %s\n", argv[2]);
exit(1);
}
fbase = Strnew_charp(argv[2]);
p = argv[2];
if (strrchr(p, '/') != NULL)
p = strrchr(p, '/')+1;
fbase = Strnew_charp(p);
if (strchr(fbase->ptr, '.'))
while (Strlastchar(fbase) != '.')
Strshrink(fbase, 1);