summaryrefslogtreecommitdiff
path: root/mk/buildlink3/libtool-do-install
diff options
context:
space:
mode:
Diffstat (limited to 'mk/buildlink3/libtool-do-install')
-rw-r--r--mk/buildlink3/libtool-do-install25
1 files changed, 25 insertions, 0 deletions
diff --git a/mk/buildlink3/libtool-do-install b/mk/buildlink3/libtool-do-install
new file mode 100644
index 00000000000..dc851a5e339
--- /dev/null
+++ b/mk/buildlink3/libtool-do-install
@@ -0,0 +1,25 @@
+# $NetBSD: libtool-do-install,v 1.2 2003/09/02 06:59:56 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