blob: d97371695528b87482c439425d1fac8490902da7 (
plain)
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
|
#!@BUILDLINK_SHELL@
#
# $NetBSD: wrapper.sh,v 1.4 2002/09/28 23:46:42 jlam Exp $
Xsed='@SED@ -e 1s/^X//'
sed_quote_subst='s/\([\\`\\"$\\\\]\)/\\\1/g'
pre_cache="@_BLNK_WRAP_PRE_CACHE@"
cache="@_BLNK_WRAP_CACHE@"
post_cache="@_BLNK_WRAP_POST_CACHE@"
logic="@_BLNK_WRAP_LOGIC@"
specificlogic="@_BLNK_WRAP_SPECIFIC_LOGIC@"
wrapperlog="@_BLNK_WRAP_LOG@"
updatecache=${BUILDLINK_UPDATE_CACHE-yes}
cmd="@WRAPPEE@"
for arg; do
cacheupdated=no
. $logic
case "$cacheupdated" in
yes) @CAT@ $pre_cache $cache $post_cache > $logic ;;
esac
. $specificlogic
args="$args $arg"
done
cmd="$cmd $args"
@_BLNK_WRAP_ENV@
@_BLNK_WRAP_SANITIZE_PATH@
@ECHO@ $cmd >> $wrapperlog
eval exec $cmd
|