Browse Source

add missing pdf sources

Signed-off-by: Toshaan Bharvani <toshaan@powerel.org>
master
Toshaan Bharvani 2 years ago
parent
commit
3ad462f729
  1. 30
      SOURCES/generate-pdf.sh
  2. BIN
      SOURCES/libconfig-1.7.2.pdf

30
SOURCES/generate-pdf.sh

@ -0,0 +1,30 @@ @@ -0,0 +1,30 @@
#! /bin/sh

# This script builds the PDF version of the libconfig documentation.
# Inspired by the PostgreSQL package.

set -e

# Pass package version and name optionally as argument
VERSION=$1
PKGNAME=${2-libconfig}

test -z "$VERSION" && VERSION=`awk '/^Version:/ { print $2; }' "$PKGNAME".spec`

TARGETFILE=`readlink -f "$PKGNAME-$VERSION.pdf"`
test -f "$TARGETFILE" && echo "$TARGETFILE exists" && exit 1

echo Building $TARGETFILE ...

tar xf "$PKGNAME"-$VERSION.tar.*
cd "$PKGNAME"-$VERSION

# Apply any patches that affect the PDF documentation
# patch -p1 < ../xxx.patch

# Build the PDF docs
./configure >/dev/null
make pdf
mv -f doc/libconfig.pdf "$TARGETFILE"

exit 0

BIN
SOURCES/libconfig-1.7.2.pdf

Binary file not shown.
Loading…
Cancel
Save