build fixes

master
joey 2007-05-20 01:04:24 +00:00
parent d3d528b5c4
commit 05fbbad4b4
2 changed files with 6 additions and 4 deletions

View File

@ -26,9 +26,11 @@ PROBABLE_INST_LIB=$(shell \\
tflag=$(shell if [ "$$NOTAINT" != 0 ]; then printf -- "-T"; fi)
extramodules=$(shell if [ "$$PROFILE" = 1 ]; then printf -- "-MDevel::Profiler"; fi)
extra_build:
ikiwiki.out: ikiwiki.in
./pm_filter $(PREFIX) $(VER) $(PROBABLE_INST_LIB) < ikiwiki.in > ikiwiki.out
chmod +x ikiwiki.out
extra_build: ikiwiki.out
LANG=C perl -I. $(extramodules) $(tflag) ikiwiki.out doc html --templatedir=templates \
--underlaydir=basewiki --nousedirs\
--wikiname="ikiwiki" --verbose \

View File

@ -1,9 +1,9 @@
#!/usr/bin/perl
use warnings;
use strict;
use Test::More tests => 2;
use Test::More tests => 3;
my $ret=system("./ikiwiki.out -plugin brokenlinks -rebuild -underlaydir=basewiki t/basewiki_brokenlinks t/basewiki_brokenlinks/out");
ok($ret == 0);
ok(! system("make ikiwiki.out"));
ok(! system("./ikiwiki.out -plugin brokenlinks -rebuild -underlaydir=basewiki t/basewiki_brokenlinks t/basewiki_brokenlinks/out"));
ok(`grep 'no broken links' t/basewiki_brokenlinks/out/index.html`);
system("rm -rf t/basewiki_brokenlinks/out t/basewiki_brokenlinks/.ikiwiki");