--- publish.orig Fri Jan 17 11:33:47 2003 +++ publish Fri Jan 17 11:35:09 2003 @@ -261,7 +261,7 @@ return 0; } - if ($noWebDir) { + if (!$noWebDir) { print "mkdir $publishDir/web\n" if ($debug); mkdir "$publishDir/$web", 0777; @@ -378,7 +378,7 @@ print " Copy files $blah\n" if ($debug); - $tmpl =~ s((?<==\")$webPubUrlPath\/([^\"]+)(?=\"))(©Resource($web, $1, $copied))geo; + $tmpl =~ s((?<==\")(?:http://localhost)?$webPubUrlPath\/([^\"]+)(?=\"))(©Resource($web, $1, $copied))geo; # Modify internal links. @@ -393,6 +393,12 @@ $tmpl =~ s(.*?<\/nopublish>)()gos; + # Remove base tag - DZA + $tmpl =~ s/]+\/>//; + # Fix some links - DZA + $tmpl =~ s!