summaryrefslogtreecommitdiff
path: root/mk/buildlink3/libtool-do-install
blob: 20d72a60606e1718fe18a0c0807ea9046263fc48 (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
# $NetBSD: libtool-do-install,v 1.1.2.2 2003/08/16 07:46:32 jlam Exp $
#
# This file is called directly by the libtool wrapper when it has
# figured out that the libtool invocation is meant to do a file
# installation.  We simply quote the remaining command-line arguments
# properly to build a correct libtool command line.  The libtool
# wrapper will perform the actual execution.  We don't worry about
# caching or speed, since installation is not a bottleneck for package
# creation.

cmd="$cmd $arg"
while $test $# -gt 0; do
	arg="$1"; shift
	case $arg in
	*[\`\"\$\\]*)
		arg=`$echo "X$arg" | $Xsed -e "$sed_quote_subst"`
		;;
	esac
	case $arg in
	*[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \	]*|*]*|"")
		arg="\"$arg\""
		;;
	esac
	cmd="$cmd $arg"
done