blob: 1d8323bf3cb9b9a02e1e2aa48e1a863aed147328 (
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
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
|
#!@BUILDLINK_SHELL@
#
# $NetBSD: wrapper.sh,v 1.6 2002/12/26 17:08:57 jlam Exp $
Xsed='@SED@ -e 1s/^X//'
sed_quote_subst='s/\([\\`\\"$\\\\]\)/\\\1/g'
private_pre_cache="@_BLNK_WRAP_PRIVATE_PRE_CACHE@"
private_cache_add="@_BLNK_WRAP_PRIVATE_CACHE_ADD@"
private_cache="@_BLNK_WRAP_PRIVATE_CACHE@"
private_post_cache="@_BLNK_WRAP_PRIVATE_POST_CACHE@"
pre_cache="@_BLNK_WRAP_PRE_CACHE@"
cache_add="@_BLNK_WRAP_CACHE_ADD@"
cache="@_BLNK_WRAP_CACHE@"
post_cache="@_BLNK_WRAP_POST_CACHE@"
logic="@_BLNK_WRAP_LOGIC@"
post_logic="@_BLNK_WRAP_POST_LOGIC@"
wrapperlog="@_BLNK_WRAP_LOG@"
updatecache=${BUILDLINK_UPDATE_CACHE-yes}
cacheall=${BUILDLINK_CACHE_ALL-no}
cat="@CAT@"
echo="@ECHO@"
test="@TEST@"
BUILDLINK_DIR="@BUILDLINK_DIR@"
BUILDLINK_X11_DIR="@BUILDLINK_X11_DIR@"
WRKDIR="@WRKDIR@"
WRKSRC="@WRKSRC@"
cmd="@WRAPPEE@"
for arg do
cachehit=no
skipcache=no
. $private_cache
case $skipcache,$cachehit in
no,no) . $cache ;;
esac
case $cachehit in
no) . $logic ;;
esac
cmd="$cmd $arg"
done
@_BLNK_WRAP_ENV@
@_BLNK_WRAP_SANITIZE_PATH@
$echo $cmd >> $wrapperlog
eval exec $cmd
|