update from their respective sources
[shellsnippets/shellsnippets.git] / posix / pbuilder-hooks / pbuild
1 #!/bin/mksh
2 # $MirOS: contrib/hosted/tg/deb/hookdir/pbuild,v 1.3 2011/06/09 22:17:15 tg Exp $
3 #-
4 # Not complicated enough for copyright.
5
6 DIST=$(realpath "$0")
7 DIST=${DIST##*/dists/}
8 DIST=${DIST%%/*}
9
10 unset LANG LANGUAGE LC_ADDRESS LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
11     LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
12     LC_TELEPHONE LC_TIME
13 export LC_ALL=C DIST
14 exec sudo cowbuilder --hookdir $(realpath .)/pb-hook "$@"