summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRichard W.M. Jones <rjones@redhat.com>2010-12-31 10:39:05 +0000
committerRichard W.M. Jones <rjones@redhat.com>2011-01-10 09:39:44 +0000
commite4f1a2511613c69d3b8b1128b8f6cf0dab57d476 (patch)
treeef3c6521c3a9fb17abe3ea498a9ac66673cc6ef7
parent8b665274e301bb3950737b81c84aa1c1b59687a8 (diff)
downloadlibguestfs-e4f1a2511613c69d3b8b1128b8f6cf0dab57d476.tar.gz
libguestfs-e4f1a2511613c69d3b8b1128b8f6cf0dab57d476.tar.xz
libguestfs-e4f1a2511613c69d3b8b1128b8f6cf0dab57d476.zip
podwrapper: 'builddir' was not defined - use a properly defined path.
(cherry picked from commit 7a8c60e1c8fbaf09fb2fa2fe10b50df39c0d9650)
-rwxr-xr-xpodwrapper.sh.in22
1 files changed, 21 insertions, 1 deletions
diff --git a/podwrapper.sh.in b/podwrapper.sh.in
index d39d8173..175368a5 100755
--- a/podwrapper.sh.in
+++ b/podwrapper.sh.in
@@ -31,6 +31,26 @@ POD2MAN="@POD2MAN@"
POD2TEXT="@POD2TEXT@"
POD2HTML="@POD2HTML@"
+# This script could be run with any current directory, so if a source
+# or build path is required it must be relative to the following
+# absolute paths:
+abs_top_srcdir="@abs_top_srcdir@"
+abs_top_builddir="@abs_top_builddir@"
+
+if [ -z "$abs_top_srcdir" ]; then
+ echo "*** podwrapper.sh: error: abs_top_srcdir not defined"
+ echo "probably this is a very old version of autoconf and you need to"
+ echo "upgrade to a recent version"
+ exit 1
+fi
+
+if [ -z "$abs_top_builddir" ]; then
+ echo "*** podwrapper.sh: error: abs_top_builddir not defined"
+ echo "probably this is a very old version of autoconf and you need to"
+ echo "upgrade to a recent version"
+ exit 1
+fi
+
declare -a inserts
declare -a pattern
declare -a indent
@@ -159,7 +179,7 @@ fi
if [ -n "$html_output" ]; then
"$POD2HTML" \
- --css "pod.css" --htmldir "$builddir/html" \
+ --css "pod.css" --htmldir "$abs_top_builddir/html" \
< $tmpdir/full.pod > "$html_output".tmp
mv "$html_output".tmp "$html_output"
fi