public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
From: Wolfgang Denk <wd@denx.de>
To: u-boot@lists.denx.de
Subject: [U-Boot-Users] [PATCH] Use `ln -sf` rather than `rm -f && ln -s`
Date: Mon, 28 Jan 2008 21:53:28 +0100	[thread overview]
Message-ID: <20080128205328.892F924781@gemini.denx.de> (raw)
In-Reply-To: Your message of "Mon, 28 Jan 2008 06:37:34 EST." <1201520254-25593-1-git-send-email-vapier@gentoo.org>

In message <1201520254-25593-1-git-send-email-vapier@gentoo.org> you wrote:
> 
> Signed-off-by: Mike Frysinger <vapier@gentoo.org>
> ---
>  tools/Makefile |    9 +++------
>  1 files changed, 3 insertions(+), 6 deletions(-)
> 
> diff --git a/tools/Makefile b/tools/Makefile
> index af0de47..22d9dae 100644
> --- a/tools/Makefile
> +++ b/tools/Makefile
> @@ -203,19 +203,16 @@ else
>  endif
>  
>  $(obj)environment.c:
> -		@rm -f $(obj)environment.c
> -		ln -s $(src)../common/environment.c $(obj)environment.c
> +		ln -s -f $(src)../common/environment.c $(obj)environment.c

Be careful here. Are you 100% sure that all systems in the field will
behave exactly as your's is doing?

What is the exact problem you are trying to solve? If it's not a bug,
I recomment to leave the code as is.

Best regards,

Wolfgang Denk

-- 
DENX Software Engineering GmbH,     MD: Wolfgang Denk & Detlev Zundel
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd at denx.de
If you can't beat it or corrupt it, you pretend it was your  idea  in
the first place.                 - Terry Pratchett, _Guards! Guards!_

  parent reply	other threads:[~2008-01-28 20:53 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-01-28 11:37 [U-Boot-Users] [PATCH] Use `ln -sf` rather than `rm -f && ln -s` Mike Frysinger
2008-01-28 11:38 ` Mike Frysinger
2008-01-28 20:56   ` Wolfgang Denk
2008-01-28 21:16     ` Mike Frysinger
2008-01-28 21:41       ` J. William Campbell
2008-01-28 23:11   ` Johannes Stezenbach
2008-01-29  0:27     ` Mike Frysinger
2008-02-14  0:18     ` Wolfgang Denk
2008-01-28 20:53 ` Wolfgang Denk [this message]
2008-01-28 20:57   ` Mike Frysinger
2008-04-14 19:50     ` Wolfgang Denk

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20080128205328.892F924781@gemini.denx.de \
    --to=wd@denx.de \
    --cc=u-boot@lists.denx.de \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox