[oe] [PATCH 4/4] bin/install: implement -D internally
Khem Raj
raj.khem at gmail.com
Tue Jan 18 20:37:04 UTC 2011
On Tue, Jan 18, 2011 at 7:18 AM, Chris Larson <kergoth at gmail.com> wrote:
> From: Chris Larson <chris_larson at mentor.com>
>
> Signed-off-by: Chris Larson <chris_larson at mentor.com>
Acked-by: Khem Raj <raj.khem at gmail.com>
> ---
> bin/install | 13 ++++++++++++-
> 1 files changed, 12 insertions(+), 1 deletions(-)
>
> diff --git a/bin/install b/bin/install
> index 4ad8172..1c938755 100755
> --- a/bin/install
> +++ b/bin/install
> @@ -1,9 +1,13 @@
> #!/bin/sh
> +#
> +# Portability notes:
> +# - We allow what SuSv3 defines
> +# - We implement -D internally
>
> source $(dirname $0)/wrapper.sh
>
> saved=""
> -while getopts dbCcMpSsvB:f:g:m:o: opt; do
> +while getopts dbCcMpSsvB:f:g:m:o:D opt; do
> case "$opt" in
> s)
> # Ignore strip argument
> @@ -12,6 +16,9 @@ while getopts dbCcMpSsvB:f:g:m:o: opt; do
> save "-$opt"
> save "$OPTARG"
> ;;
> + D)
> + createleading="1"
> + ;;
> \?)
> exit 1
> ;;
> @@ -25,4 +32,8 @@ for arg; do
> save "$arg"
> done
>
> +if [ $# == 2 -a -n "$createleading" ]; then
> + install -d $(dirname $2)
> +fi
> +
> exec_real
> --
> 1.7.2.3
>
>
> _______________________________________________
> Openembedded-devel mailing list
> Openembedded-devel at lists.openembedded.org
> http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/openembedded-devel
>
More information about the Openembedded-devel
mailing list