pkgsrc/mk/repro/ar
khorben 32a7cecedb Look for ar(1) in $_ORIG_PATH with PKGSRC_MKREPRO
This no longer hard-codes the path to ar(1) as /usr/bin/ar. It is not
possible to use the original value of $TOOLS_PATH.ar as it is usually
not set.
2017-11-12 16:41:40 +00:00

13 lines
132 B
Bash
Executable file

#!/bin/sh
PATH="$_PATH_ORIG"
if [ $# -ge 2 ]; then
args="$1"
mod="$2"
shift 2
exec ar "$mod$args" "$@"
else
exec ar "$@"
fi