#!/bin/sh
#
# Run this shell script to bootstrap as necessary after a fresh checkout.

set -e

# Regenerate all the autotools files.
autoreconf -i --force

# Generate manual pages.
version=`grep '^pam-webauth-otp' NEWS | head -1 | cut -d' ' -f2`
pod2man --release="$version" --center="pam-webauth-otp" --section=5 \
    docs/pam_webauth_otp.pod > docs/pam_webauth_otp.5
