projects
/
binutils-gdb.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
sim: require a C11 compiler
[binutils-gdb.git]
/
src-release.sh
diff --git
a/src-release.sh
b/src-release.sh
index e1dcd82746902d72e156a5a263f49aaef2578fe4..fd65856a55cc8d73c222a2ef1ea0e9dd0c4b22e8 100755
(executable)
--- a/
src-release.sh
+++ b/
src-release.sh
@@
-1,5
+1,5
@@
#!/usr/bin/env bash
#!/usr/bin/env bash
-# Copyright (C) 1990-20
18
Free Software Foundation
+# Copyright (C) 1990-20
20
Free Software Foundation
#
# This file is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
#
# This file is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
@@
-26,7
+26,7
@@
BZIPPROG=bzip2
GZIPPROG=gzip
LZIPPROG=lzip
XZPROG=xz
GZIPPROG=gzip
LZIPPROG=lzip
XZPROG=xz
-
MD5PROG=md5
sum
+
SHA256PROG=sha256
sum
MAKE=make
CC=gcc
CXX=g++
MAKE=make
CC=gcc
CXX=g++
@@
-61,8
+61,12
@@
getver()
$tool/common/create-version.sh $tool 'dummy-host' 'dummy-target' VER.tmp
cat VER.tmp | grep 'version\[\]' | sed 's/.*"\([^"]*\)".*/\1/' | sed 's/-git$//'
rm -f VER.tmp
$tool/common/create-version.sh $tool 'dummy-host' 'dummy-target' VER.tmp
cat VER.tmp | grep 'version\[\]' | sed 's/.*"\([^"]*\)".*/\1/' | sed 's/-git$//'
rm -f VER.tmp
+ elif test $tool = "gdb"; then
+ ./gdbsupport/create-version.sh $tool 'dummy-host' 'dummy-target' VER.tmp
+ cat VER.tmp | grep 'version\[\]' | sed 's/.*"\([^"]*\)".*/\1/' | sed 's/-git$//'
+ rm -f VER.tmp
elif test -f $tool/version.in; then
elif test -f $tool/version.in; then
- head -1 $tool/version.in
+ head -
n
1 $tool/version.in
else
echo VERSION
fi
else
echo VERSION
fi
@@
-164,15
+168,15
@@
do_proto_toplev()
CVS_NAMES='-name CVS -o -name .cvsignore'
CVS_NAMES='-name CVS -o -name .cvsignore'
-# Add a
n md5
sum to the built tarball
-do_
md5
sum()
+# Add a
sha256
sum to the built tarball
+do_
sha256
sum()
{
{
- echo "==> Adding
md5
checksum to top-level directory"
+ echo "==> Adding
sha256
checksum to top-level directory"
(cd proto-toplev && find * -follow \( $CVS_NAMES \) -prune \
-o -type f -print \
(cd proto-toplev && find * -follow \( $CVS_NAMES \) -prune \
-o -type f -print \
- | xargs $
MD5PROG > ../md5
.new)
- rm -f proto-toplev/
md5
.sum
- mv
md5.new proto-toplev/md5
.sum
+ | xargs $
SHA256PROG > ../sha256
.new)
+ rm -f proto-toplev/
sha256
.sum
+ mv
sha256.new proto-toplev/sha256
.sum
}
# Build the release tarball
}
# Build the release tarball
@@
-272,7
+276,7
@@
tar_compress()
verdir=${5:-$tool}
ver=$(getver $verdir)
do_proto_toplev $package $ver $tool "$support_files"
verdir=${5:-$tool}
ver=$(getver $verdir)
do_proto_toplev $package $ver $tool "$support_files"
- do_
md5
sum
+ do_
sha256
sum
do_tar $package $ver
do_compress $package $ver "$compressors"
}
do_tar $package $ver
do_compress $package $ver "$compressors"
}
@@
-286,7
+290,7
@@
gdb_tar_compress()
compressors=$4
ver=$(getver $tool)
do_proto_toplev $package $ver $tool "$support_files"
compressors=$4
ver=$(getver $tool)
do_proto_toplev $package $ver $tool "$support_files"
- do_
md5
sum
+ do_
sha256
sum
do_djunpack $package $ver
do_tar $package $ver
do_compress $package $ver "$compressors"
do_djunpack $package $ver
do_tar $package $ver
do_compress $package $ver "$compressors"
@@
-311,7
+315,7
@@
gas_release()
tar_compress $package $tool "$GAS_SUPPORT_DIRS" "$compressors"
}
tar_compress $package $tool "$GAS_SUPPORT_DIRS" "$compressors"
}
-GDB_SUPPORT_DIRS="bfd include libiberty
opcodes readline sim intl libdecnumber cpu zlib contrib
"
+GDB_SUPPORT_DIRS="bfd include libiberty
libctf opcodes readline sim intl libdecnumber cpu zlib contrib gnulib gdbsupport gdbserver
"
gdb_release()
{
compressors=$1
gdb_release()
{
compressors=$1