3 # Run this shell script to bootstrap as necessary after a fresh checkout.
5 # Written by Russ Allbery <eagle@eyrie.org>
6 # Copyright 2007, 2010, 2013, 2014
7 # The Board of Trustees of the Leland Stanford Junior University
9 # See LICENSE for licensing terms.
13 # Regenerate all the autotools files.
16 # Generate manual pages.
17 version=`grep '^krb5-strength' NEWS | head -1 | cut -d' ' -f2`
18 pod2man --release="$version" --center='krb5-strength' \
19 tools/heimdal-history > tools/heimdal-history.1
20 pod2man --release="$version" --center='krb5-strength' \
21 tools/heimdal-strength.pod > tools/heimdal-strength.1
22 pod2man --release="$version" --center='krb5-strength' \
23 tools/krb5-strength-wordlist > tools/krb5-strength-wordlist.1
25 # Generate the C version of our password test data.
26 for data in tests/data/passwords/*.json ; do
27 tests/data/passwords/make-c-data "$data" \
28 > $(echo "$data" | sed 's/\.json$/.c/')
31 # Generate the CDB database from the test wordlist for plugin tests.
32 rm -f tests/data/wordlist.cdb tests/data/wordlist.sqlite
33 tools/krb5-strength-wordlist -c tests/data/wordlist.cdb tests/data/wordlist
34 tools/krb5-strength-wordlist -s tests/data/wordlist.sqlite tests/data/wordlist