head 1.3; access; symbols pkgsrc-2013Q2:1.3.0.56 pkgsrc-2013Q2-base:1.3 pkgsrc-2012Q4:1.3.0.54 pkgsrc-2012Q4-base:1.3 pkgsrc-2011Q4:1.3.0.52 pkgsrc-2011Q4-base:1.3 pkgsrc-2011Q2:1.3.0.50 pkgsrc-2011Q2-base:1.3 pkgsrc-2009Q4:1.3.0.48 pkgsrc-2009Q4-base:1.3 pkgsrc-2008Q4:1.3.0.46 pkgsrc-2008Q4-base:1.3 pkgsrc-2008Q3:1.3.0.44 pkgsrc-2008Q3-base:1.3 cube-native-xorg:1.3.0.42 cube-native-xorg-base:1.3 pkgsrc-2008Q2:1.3.0.40 pkgsrc-2008Q2-base:1.3 pkgsrc-2008Q1:1.3.0.38 pkgsrc-2008Q1-base:1.3 pkgsrc-2007Q4:1.3.0.36 pkgsrc-2007Q4-base:1.3 pkgsrc-2007Q3:1.3.0.34 pkgsrc-2007Q3-base:1.3 pkgsrc-2007Q2:1.3.0.32 pkgsrc-2007Q2-base:1.3 pkgsrc-2007Q1:1.3.0.30 pkgsrc-2007Q1-base:1.3 jlam-pkgviews:1.3.0.28 jlam-pkgviews-base:1.3 pkgsrc-2006Q4:1.3.0.26 pkgsrc-2006Q4-base:1.3 pkgsrc-2006Q3:1.3.0.24 pkgsrc-2006Q3-base:1.3 pkgsrc-2006Q2:1.3.0.22 pkgsrc-2006Q2-base:1.3 pkgsrc-2006Q1:1.3.0.20 pkgsrc-2006Q1-base:1.3 pkgsrc-2005Q4:1.3.0.18 pkgsrc-2005Q4-base:1.3 pkgsrc-2005Q3:1.3.0.16 pkgsrc-2005Q3-base:1.3 pkgsrc-2005Q2:1.3.0.14 pkgsrc-2005Q2-base:1.3 pkgsrc-2005Q1:1.3.0.12 pkgsrc-2005Q1-base:1.3 pkgsrc-2004Q4:1.3.0.10 pkgsrc-2004Q4-base:1.3 pkgsrc-2004Q3:1.3.0.8 pkgsrc-2004Q3-base:1.3 pkgsrc-2004Q2:1.3.0.6 pkgsrc-2004Q2-base:1.3 pkgsrc-2004Q1:1.3.0.4 pkgsrc-2004Q1-base:1.3 pkgsrc-2003Q4:1.3.0.2 pkgsrc-2003Q4-base:1.3 pkgviews-mk-base:1.1 pkgviews-mk:1.1.0.2; locks; strict; comment @# @; 1.3 date 2003.10.03.19.39.19; author jlam; state dead; branches; next 1.2; 1.2 date 2003.09.02.06.59.56; author jlam; state Exp; branches; next 1.1; 1.1 date 2003.08.14.13.16.50; author jlam; state dead; branches 1.1.2.1; next ; 1.1.2.1 date 2003.08.14.13.16.50; author jlam; state Exp; branches; next 1.1.2.2; 1.1.2.2 date 2003.08.16.07.46.32; author jlam; state Exp; branches; next ; desc @@ 1.3 log @Factor out some more commonly used bits of the wrapper system into their own files: buildcmd and quotearg, which are used to build up the command line and to quote arguments. Also add the ability to skip processing the next few arguments and add them directly to the command line. Now, either the marshall script or the cache scripts can request skipping the N arguments by setting skipargs=N. @ text @# $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 @ 1.2 log @Merge pkgviews-mk branch into the HEAD by running: cd pkgsrc/mk cvs update -Pd -A cvs update -Pd -j pkgviews-mk-base -j pkgviews-mk @ text @d1 1 a1 1 # $NetBSD: libtool-do-install,v 1.1.2.2 2003/08/16 07:46:32 jlam Exp $ @ 1.1 log @file libtool-do-install was initially added on branch pkgviews-mk. @ text @d1 25 @ 1.1.2.1 log @Initial implementation of buildlink3, based on buildlink2 and designed to take advantage of pkgviews. More thought is needed for the pkgviews/libtool interaction because libtool archives (*.la) will likely contain absolute paths to other .la files in depot directories, but we don't want this since binary packages with wildcard dependencies may break. @ text @a0 17 # $NetBSD: libtool-do-install,v 1.1 2002/12/26 17:08:56 jlam Exp $ 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 @ 1.1.2.2 log @Add comments to document what the libtool-* files actually do in the wrapper framework. @ text @d1 1 a1 9 # $NetBSD: libtool-do-install,v 1.1.2.1 2003/08/14 13:16:50 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. @