doxygen/doxygen-html.sh

17 lines
453 B
Bash

#!/bin/sh -ex
#
# download the binary distribution and extract the html manual from it
spec=`dirname "$0"`/doxygen.spec
version=`rpm -q --qf '%{version}' --specfile "$spec"`
cwd=`pwd`
tmpdir=`mktemp -d`
pushd $tmpdir
wget "http://ftp.stack.nl/pub/users/dimitri/doxygen-$version.linux.bin.tar.gz"
tar xzf "doxygen-$version.linux.bin.tar.gz" "doxygen-$version/html"
tar cjf "$cwd/doxygen-$version-html.tar.bz2" "doxygen-$version"
popd
rm -rf "$tmpdir"