File: mk.sh

package info (click to toggle)
complexity 1.10%2Bdfsg-1
  • links: PTS, VCS
  • area: main
  • in suites: stretch
  • size: 1,704 kB
  • sloc: sh: 5,111; ansic: 1,936; makefile: 96
file content (19 lines) | stat: -rw-r--r-- 351 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
#! /bin/sh

ag=`command -v autogen`
test -x "$ag" || {
    touch $1
    exit 0
}

test -x ${top_builddir}/src/${exe} || {
    cd ${top_builddir}/src || exit 1
    ${MAKE} ${exe} || exit 1
    cd ${top_builddir}/doc
}

set -e
touch ${1}-TMP
$ag -T${texi_tpl} -b ${exe} ${optdefs}
$ag ${TXI_DEP} -Tagtexi-cmd -DLEVEL=chapter ${optdefs}
mv ${1}-TMP ${1}