This is the mail archive of the
binutils-cvs@sourceware.org
mailing list for the binutils project.
[binutils-gdb] Adjust src-release.sh for sim using the gdb create-version.sh.
- From: Hans-Peter Nilsson <hp at sourceware dot org>
- To: bfd-cvs at sourceware dot org, gdb-cvs at sourceware dot org
- Date: 15 Apr 2015 02:09:50 -0000
- Subject: [binutils-gdb] Adjust src-release.sh for sim using the gdb create-version.sh.
https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;h=ec5b9462e068fba2a571ab3f3943c48250048d3c
commit ec5b9462e068fba2a571ab3f3943c48250048d3c
Author: Hans-Peter Nilsson <hp@bitrange.com>
Date: Wed Apr 15 04:08:21 2015 +0200
Adjust src-release.sh for sim using the gdb create-version.sh.
* sim-release.sh (tar_compress): If there's a fifth parameter,
use that in the getver call instead of $tool.
(sim_release): Pass gdb as fifth parameter to tar_compress.
(SIM_SUPPORT_DIRS): Add gdb/common/create-version.sh.
Diff:
---
ChangeLog | 9 +++++++++
src-release.sh | 7 ++++---
2 files changed, 13 insertions(+), 3 deletions(-)
diff --git a/ChangeLog b/ChangeLog
index 457a6bb..616c5c2 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,12 @@
+2015-04-15 Mike Frysinger <vapier@gentoo.org>
+ Hans-Peter Nilsson <hp@axis.com>
+
+ Adjust src-release.sh for sim using the gdb create-version.sh.
+ * sim-release.sh (tar_compress): If there's a fifth parameter,
+ use that in the getver call instead of $tool.
+ (sim_release): Pass gdb as fifth parameter to tar_compress.
+ (SIM_SUPPORT_DIRS): Add gdb/common/create-version.sh.
+
2015-04-01 H.J. Lu <hongjiu.lu@intel.com>
* configure.ac: Add --with-system-zlib.
diff --git a/src-release.sh b/src-release.sh
index 9b985f0..40d0126 100755
--- a/src-release.sh
+++ b/src-release.sh
@@ -244,7 +244,8 @@ tar_compress()
tool=$2
support_files=$3
compressors=$4
- ver=$(getver $tool)
+ verdir=${5:-$tool}
+ ver=$(getver $verdir)
do_proto_toplev $package $ver $tool "$support_files"
do_md5sum
do_tar $package $ver
@@ -295,13 +296,13 @@ gdb_release()
}
# Corresponding to the CVS "sim" module.
-SIM_SUPPORT_DIRS="bfd opcodes libiberty include intl gdb/version.in makefile.vms zlib"
+SIM_SUPPORT_DIRS="bfd opcodes libiberty include intl gdb/version.in gdb/common/create-version.sh makefile.vms zlib"
sim_release()
{
compressors=$1
package=sim
tool=sim
- tar_compress $package $tool "$SIM_SUPPORT_DIRS" "$compressors"
+ tar_compress $package $tool "$SIM_SUPPORT_DIRS" "$compressors" gdb
}
usage()