File: bootstrap

package info (click to toggle)
remctl 3.15-1
  • links: PTS, VCS
  • area: main
  • in suites: bullseye, buster, sid
  • size: 5,224 kB
  • sloc: ansic: 20,027; sh: 5,047; perl: 1,791; java: 740; makefile: 683; xml: 501
file content (39 lines) | stat: -rwxr-xr-x 1,405 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
#!/bin/sh
#
# Run this shell script to bootstrap as necessary after a fresh checkout.
#
# Written by Russ Allbery <eagle@eyrie.org>
# Copyright 2016 Dropbox, Inc.
# Copyright 2005-2006, 2008-2013
#     The Board of Trustees of the Leland Stanford Junior University
#
# SPDX-License-Identifier: MIT

set -e

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

# Generate manual pages.
version=`grep '^remctl' NEWS | head -1 | cut -d' ' -f2`
pod2man --release="$version" --center="remctl" docs/remctl.pod > docs/remctl.1
pod2man --release="$version" --center="remctl" --section=8 \
    docs/remctl-shell.pod > docs/remctl-shell.8.in
pod2man --release="$version" --center="remctl" --section=8 docs/remctld.pod \
    > docs/remctld.8.in
for doc in remctl remctl_close remctl_command remctl_error remctl_new \
           remctl_noop remctl_open remctl_output remctl_set_ccache \
           remctl_set_source_ip remctl_set_timeout ; do
    pod2man --release="$version" --center="remctl Library Reference" \
        --section=3 --name=`echo "$doc" | tr a-z A-Z` docs/api/"$doc".pod \
        > docs/api/"$doc".3
done

# Generate protocol documentation if xml2rfc is available.
if command -v xml2rfc 2>&1 >/dev/null ; then
    cd docs
    xml2rfc --html protocol.xml protocol.html
    xml2rfc --text protocol.xml protocol.txt
else
    echo 'xml2rfc not found, not building protocol documentation' >&2
fi