blob: e1f02a3f634e1b03d40187a18da83d4b2dd4f4dd (
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.5 2002/12/22 19:02:45 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}
cacheall=${BUILDLINK_CACHE_ALL-no}
cmd="@WRAPPEE@"
for arg do
cacheupdated=no
. $logic
case "$cacheupdated" in
yes) @CAT@ $pre_cache $cache $post_cache > $logic ;;
esac
. $specificlogic
cmd="$cmd $arg"
done
@_BLNK_WRAP_ENV@
@_BLNK_WRAP_SANITIZE_PATH@
@ECHO@ $cmd >> $wrapperlog
eval exec $cmd
|