chiark / gitweb /
po/list-documents: Set translation threshold to 10%
[dgit.git] / po4a / install-documents
1 #!/bin/bash
2 set -e
3
4 srcdir=$1; shift
5 destdir=$1; shift
6
7 mkdir -p "$srcdir"
8
9 docs=( $( ( cd "$srcdir" && find man -type f ) | sed 's#\.pod$##' ) )
10
11 echo ${docs[*]}
12
13 x () {
14         echo "+ $*";
15         "$@"
16 }
17
18 if [ "${#docs}" = 0 ]; then exit 0; fi
19
20 x ${MAKE-make} -s -C "$srcdir" -f ../../Makefile ${docs[@]}
21
22 mandest=$destdir/usr/share
23
24 for f in "${docs[@]}"; do
25         mkdir -p "$mandest/${f%/*}"
26         x cp "$srcdir/$f" "$mandest/$f"
27 done