Mirror of the gdb-patches mailing list
 help / color / mirror / Atom feed
From: Andrew Burgess <andrew.burgess@embecosm.com>
To: Mike Frysinger <vapier@gentoo.org>
Cc: gdb-patches@sourceware.org
Subject: Re: [PATCH] sim: common: simplify version script
Date: Mon, 18 Jan 2021 09:57:26 +0000	[thread overview]
Message-ID: <20210118095726.GO265215@embecosm.com> (raw)
In-Reply-To: <20210117111958.14040-1-vapier@gentoo.org>

* Mike Frysinger via Gdb-patches <gdb-patches@sourceware.org> [2021-01-17 06:19:58 -0500]:

> We don't the host & target aliases, so don't bother emitting them.

Missing words here.  I guess "We don't use the ..."

Also, those pesky ChangeLog things...

Thanks,
Andrew


> ---
>  sim/common/Make-common.in    |  4 ++--
>  sim/common/create-version.sh | 17 ++++++-----------
>  2 files changed, 8 insertions(+), 13 deletions(-)
> 
> diff --git a/sim/common/Make-common.in b/sim/common/Make-common.in
> index 6e7193044305..7de7dabe646f 100644
> --- a/sim/common/Make-common.in
> +++ b/sim/common/Make-common.in
> @@ -291,8 +291,8 @@ stamp-tvals: gentmap
>  	touch stamp-tvals
>  
>  version.c: Makefile $(srcroot)/gdb/version.in $(srcroot)/bfd/version.h $(srcroot)/sim/common/create-version.sh
> -	$(SHELL) $(srcroot)/sim/common/create-version.sh $(srcroot)/gdb \
> -	    $(host_alias) $(target_alias) version.c
> +	$(SHELL) $(srcroot)/sim/common/create-version.sh $(srcroot)/gdb $@.tmp
> +	$(SHELL) $(srcroot)/move-if-change $@.tmp $@
>  
>  #
>  # Rules for building sim-* components.  Triggered by listing the corresponding
> diff --git a/sim/common/create-version.sh b/sim/common/create-version.sh
> index 5252c3b8bd80..7b35e87e2150 100755
> --- a/sim/common/create-version.sh
> +++ b/sim/common/create-version.sh
> @@ -23,16 +23,11 @@
>  #        TARGET_ALIAS OUTPUT-FILE-NAME
>  
>  srcdir="$1"
> -host_alias="$2"
> -target_alias="$3"
> -output="$4"
> +output="$2"
>  
> -rm -f version.c-tmp $output version.tmp
>  date=`sed -n -e 's/^.* BFD_VERSION_DATE \(.*\)$/\1/p' $srcdir/../bfd/version.h`
> -sed -e "s/DATE/$date/" < $srcdir/version.in > version.tmp
> -echo '#include "version.h"' >> version.c-tmp
> -echo 'const char version[] = "'"`sed q version.tmp`"'";' >> version.c-tmp
> -echo 'const char host_name[] = "'"$host_alias"'";' >> version.c-tmp
> -echo 'const char target_name[] = "'"$target_alias"'";' >> version.c-tmp
> -mv version.c-tmp $output
> -rm -f version.tmp
> +ver=`sed -e "s/DATE/$date/;q" $srcdir/version.in`
> +(
> +echo '#include "version.h"'
> +echo 'const char version[] = "'"${ver}"'";'
> +) >"${output}"
> -- 
> 2.28.0
> 

  reply	other threads:[~2021-01-18  9:57 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-01-17 11:19 Mike Frysinger via Gdb-patches
2021-01-18  9:57 ` Andrew Burgess [this message]
2021-01-18 17:27   ` [PATCH/committed v2] " Mike Frysinger via Gdb-patches
2021-01-19  9:29     ` Sebastian Huber
2021-01-19 15:55       ` Mike Frysinger via Gdb-patches
2021-01-20  5:22         ` Sebastian Huber

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=20210118095726.GO265215@embecosm.com \
    --to=andrew.burgess@embecosm.com \
    --cc=gdb-patches@sourceware.org \
    --cc=vapier@gentoo.org \
    /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