Skip to content
Newer
Older
100755 30 lines (22 sloc) 526 Bytes
7531e64 @jedisct1 Add 6jack wrapper.
authored Jun 13, 2011
1 #! /bin/sh
2 # @PACKAGE@ @VERSION@
3
ac1f5f9 @jedisct1 Set the filter from the command-line.
authored Jun 14, 2011
4 if [ $# -lt 2 ]; then
7531e64 @jedisct1 Add 6jack wrapper.
authored Jun 13, 2011
5 cat<<EOT
6
7 @PACKAGE@ v@VERSION@
8
ac1f5f9 @jedisct1 Set the filter from the command-line.
authored Jun 14, 2011
9 Usage: ${0} <filter> <command> [args]
7531e64 @jedisct1 Add 6jack wrapper.
authored Jun 13, 2011
10
11 EOT
12 exit 1
13 fi
14
15 EXTRA_LIBRARIES=''
16 LIBDIR='@DESTDIR@@libdir@'
17 for lib in @lib_LTLIBRARIES@; do
18 . "${LIBDIR}"/${lib}
19 EXTRA_LIBRARIES="${EXTRA_LIBRARIES:+:}"$LIBDIR"/${dlname}"
20 done
21
22 LD_PRELOAD="${LD_PRELOAD:+:}${EXTRA_LIBRARIES}"
23 export LD_PRELOAD
24 DYLD_INSERT_LIBRARIES="${DYLD_INSERT_LIBRARIES:+:}${EXTRA_LIBRARIES}"
25 export DYLD_INSERT_LIBRARIES
ac1f5f9 @jedisct1 Set the filter from the command-line.
authored Jun 14, 2011
26 export SIXJACK_FILTER="${1}"
27 shift
7531e64 @jedisct1 Add 6jack wrapper.
authored Jun 13, 2011
28 exec ${*}
29
Something went wrong with that request. Please try again.