#!/usr/bin/php barrel; $pid = $barrel->makePath($docdir, $caller); $page = Diogenes_Barrel_Page::fromDb($barrel, $pid); if (!$page->props['PID']) { echo "failed to get Page $pid\n"; exit(1); } # produce HTML from POD $pod = realpath($pod); if (($tmpdir = System::mktemp('-d')) == false) { $this->kill("Error : could not create temporary directory!"); } $content = shell_exec("cd $tmpdir && pod2html --htmlroot=FOODOCBASE --infile=".escapeshellarg($pod)); $content = str_replace('