File: bootstrap.sh

package info (click to toggle)
alttab 1.6.1-1
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 1,272 kB
  • sloc: ansic: 4,066; sh: 1,811; makefile: 15
file content (31 lines) | stat: -rwxr-xr-x 589 bytes parent folder | download | duplicates (3)
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
#!/bin/sh

# This file is part of alttab program.

# Update autotools stuff and documentation.
# To be run by maintainers and packagers.

set +e

if [ "$1" \= "-h" ] ; then
    echo "Update autotools stuff and documentation. To be run by maintainers and packagers." >&2
    echo "Use: $0 [-f]" >&2
    echo "  -f : force regenerate everything" >&2
    exit 1
fi

if [ "$1" \= "-f" ] ; then
    force=yes
    ac_flag="-f"
fi

project=`dirname $0`

cd "$project"
autoreconf -vi $ac_flag

cd doc
if [ alttab.1.ronn -nt alttab.1 -o "$force" \= "yes" ] ; then
    ronn --roff alttab.1.ronn
fi