File: autogen

package info (click to toggle)
webauth 4.7.0-8
  • links: PTS, VCS
  • area: main
  • in suites: bullseye
  • size: 7,932 kB
  • sloc: ansic: 28,341; sh: 12,031; perl: 8,361; xml: 6,856; makefile: 459; php: 7
file content (45 lines) | stat: -rwxr-xr-x 1,627 bytes parent folder | download | duplicates (5)
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
40
41
42
43
44
45
#!/bin/sh
#
# Run this shell script to bootstrap as necessary after a fresh checkout.
#
# Written by Russ Allbery <eagle@eyrie.org>
# Copyright 2004, 2006, 2009, 2012, 2013, 2014
#     The Board of Trustees of the Leland Stanford Junior University
#
# See LICENSE for licensing terms.

set -e

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

# Generate manual pages.
version=`grep '^WebAuth' NEWS | head -1 | cut -d' ' -f2`
pod2man --release="$version" --center="WebAuth" tools/wa_keyring.pod \
    > tools/wa_keyring.1

# Generate encoding rules for WebAuth structs.
lib/encoding-rules include/webauth/was.h        \
    webauth_was_token_cache                     \
    > lib/rules-cache.c
lib/encoding-rules lib/internal.h               \
    wai_keyring_entry wai_keyring               \
    > lib/rules-keyring.c
lib/encoding-rules lib/internal.h                               \
    wai_krb5_cred_address wai_krb5_cred_authdata wai_krb5_cred  \
    > lib/rules-krb5.c
lib/encoding-rules include/webauth/tokens.h                     \
    webauth_token_app webauth_token_cred webauth_token_error    \
    webauth_token_id webauth_token_login webauth_token_proxy    \
    webauth_token_request webauth_token_webkdc_factor           \
    webauth_token_webkdc_proxy webauth_token_webkdc_service     \
    > lib/rules-tokens.c

# 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