-
Notifications
You must be signed in to change notification settings - Fork 45
/
bootstrap.sh
executable file
·44 lines (35 loc) · 1.15 KB
/
bootstrap.sh
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
#!/bin/sh
# This file is part of alttab program.
# Update autotools stuff and documentation.
# To be run by maintainers and packagers.
autoreconf=autoreconf
project="$(dirname "$0")"
if [ "$1" \= "-h" ] ; then
echo "Update autotools stuff and documentation. To be run by maintainers and packagers."
echo "Use: $0 [-f]"
echo " -f : force regenerate everything"
exit 0
fi
if [ "$1" \= "-f" ] ; then
force=yes
ac_flag="-f"
fi
if [ "$(uname)" '=' "OpenBSD" ] ; then
_arc="$(find /usr/local/bin -name 'autoreconf-*' 2>/dev/null | sort | tail -n 1)"
if [ -n "$_arc" ] ; then
export autoreconf="$_arc"
export AUTOCONF_VERSION="${_arc##*-}"
fi
_am="$(find /usr/local/bin -name 'automake-*' 2>/dev/null | sort | tail -n 1)"
if [ -n "$_am" ] ; then
export AUTOMAKE_VERSION="${_am##*-}"
fi
fi
cd "$project" || { >&2 echo 'Error: Can not `cd '"$project"'`'; exit 1 ;}
"$autoreconf" -vi $ac_flag
if which ronn >/dev/null 2>&1 ; then
cd doc || { >&2 echo 'Error: Can not `cd ''doc''`'; exit 1 ;}
if [ alttab.1.ronn -nt alttab.1 ] || [ "$force" \= "yes" ] ; then
ronn --roff alttab.1.ronn
fi
fi