summaryrefslogtreecommitdiff
path: root/build-aux
diff options
context:
space:
mode:
authorSimon Josefsson <simon@josefsson.org>2008-05-07 15:29:15 +0200
committerSimon Josefsson <simon@josefsson.org>2008-05-07 15:29:15 +0200
commitbce326dcad67c7307028e9f32d2258849d8be398 (patch)
treeef9294c5829b421f420c264beeec9ed7472ffc4d /build-aux
parent91a0ff0e26b8d643343419173b4393d152a751e9 (diff)
downloadlibtasn1-bce326dcad67c7307028e9f32d2258849d8be398.tar.gz
Update gnulib files.
Diffstat (limited to 'build-aux')
-rwxr-xr-xbuild-aux/gendocs.sh11
1 files changed, 8 insertions, 3 deletions
diff --git a/build-aux/gendocs.sh b/build-aux/gendocs.sh
index 5247034..aded2c4 100755
--- a/build-aux/gendocs.sh
+++ b/build-aux/gendocs.sh
@@ -157,6 +157,11 @@ if test ! -r $GENDOCS_TEMPLATE_DIR/gendocs_template; then
exit 1
fi
+case $outdir in
+ /*) dotdot_outdir="$outdir";;
+ *) dotdot_outdir="../$outdir";;
+esac
+
echo Generating output formats for $srcfile
cmd="$SETLANG $MAKEINFO -o $PACKAGE.info \"$srcfile\""
@@ -206,7 +211,7 @@ html_split() {
(
cd ${split_html_dir} || exit 1
ln -sf ${PACKAGE}.html index.html
- tar -czf ../$outdir/${PACKAGE}.html_$1.tar.gz -- *.html
+ tar -czf $dotdot_outdir/${PACKAGE}.html_$1.tar.gz -- *.html
)
eval html_$1_tgz_size=`calcsize $outdir/${PACKAGE}.html_$1.tar.gz`
rm -f $outdir/html_$1/*.html
@@ -231,7 +236,7 @@ if test -z "$use_texi2html"; then
split_html_dir=$PACKAGE.html
(
cd ${split_html_dir} || exit 1
- tar -czf ../$outdir/${PACKAGE}.html_node.tar.gz -- *.html
+ tar -czf $dotdot_outdir/${PACKAGE}.html_node.tar.gz -- *.html
)
html_node_tgz_size=`calcsize $outdir/${PACKAGE}.html_node.tar.gz`
rm -f $outdir/html_node/*.html
@@ -273,7 +278,7 @@ if test -n "$docbook"; then
split_html_db_dir=html_node_db
(
cd ${split_html_db_dir} || exit 1
- tar -czf ../$outdir/${PACKAGE}.html_node_db.tar.gz -- *.html
+ tar -czf $dotdot_outdir/${PACKAGE}.html_node_db.tar.gz -- *.html
)
html_node_db_tgz_size=`calcsize $outdir/${PACKAGE}.html_node_db.tar.gz`
rm -f $outdir/html_node_db/*.html