version 1.1, 2016/10/18 13:28:17
|
version 1.1.1.2, 2023/09/27 11:14:54
|
Line 10 tag=`awk '/IPERF_VERSION / {
|
Line 10 tag=`awk '/IPERF_VERSION / {
|
print $3 }' src/version.h` |
print $3 }' src/version.h` |
fi |
fi |
|
|
dirname=`echo $tag $proj | awk '{ | dirname=`echo "$tag $proj" | awk '{ |
gsub(/-ALPHA/, "a", $1); |
gsub(/-ALPHA/, "a", $1); |
gsub(/-BETA/, "b", $1); |
gsub(/-BETA/, "b", $1); |
gsub(/-RELEASE/, "", $1); |
gsub(/-RELEASE/, "", $1); |
print $2"-"$1 }'` |
print $2"-"$1 }'` |
|
|
# echo tag $tag | echo tag $tag |
# echo dirname $dirname | echo dirname $dirname |
|
|
do_tag () |
do_tag () |
{ |
{ |
git tag -s -m "tagging $tag" $tag | git tag -s -m "tagging $tag" "$tag" |
} |
} |
|
|
do_tar () |
do_tar () |
{ |
{ |
tarball=${dirname}.tar.gz |
tarball=${dirname}.tar.gz |
rm -f ${tarball} | rm -f "${tarball}" |
git archive --format=tar --prefix ${dirname}/ ${tag} | gzip -9 > ${tarball} | git archive --format=tar --prefix "${dirname}/" "${tag}" | gzip -9 > "${tarball}" |
|
|
# Compute SHA256 hash |
# Compute SHA256 hash |
case `uname -s` in |
case `uname -s` in |
Line 37 do_tar ()
|
Line 37 do_tar ()
|
Darwin) sha="shasum -a 256" ;; |
Darwin) sha="shasum -a 256" ;; |
*) sha=echo ;; |
*) sha=echo ;; |
esac |
esac |
${sha} ${tarball} | tee ${tarball}.sha256 | ${sha} "${tarball}" | tee "${tarball}.sha256" |
} |
} |
|
|
usage () |
usage () |