Skip to content

Commit

Permalink
tarball_multi_releases.sh: add new var $ver_suffix_inside_tarball
Browse files Browse the repository at this point in the history
No functional change, preparation to turn it off while preserving the
ability to test older releases.

Signed-off-by: Marc Herbert <marc.herbert@intel.com>
  • Loading branch information
marc-hb committed Sep 13, 2023
1 parent 990f49b commit bc28739
Showing 1 changed file with 8 additions and 4 deletions.
12 changes: 8 additions & 4 deletions tarball_multi_releases.bash
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,8 @@ main()
last_ver=$(parse_version_suffix "$last_dir")
local archive_name=sof-bin-"$last_ver"

local ver_suffix_inside_tarball="-$last_ver"

if test -e "$archive_name"; then
die "%s already exists\n" "$archive_name"
fi
Expand Down Expand Up @@ -119,10 +121,12 @@ main()
set -e
for d in *-WIP; do
radix=${d%-WIP}
( set -x; mv "$d" "${radix}-$last_ver")
( set -x; mv "$d" "${radix}${ver_suffix_inside_tarball}")
done
# for install.sh convenience
touch "$last_ver"
# For install.sh convenience
# Kept only for the ability to test releases < v2.7
[ -z "$ver_suffix_inside_tarball" ] ||
touch "$last_ver"
)

local manifest_file="$archive_name"/manifest.txt
Expand All @@ -142,7 +146,7 @@ main()
topdir="${FILES_ORIGIN[$f]}"
ver=$(parse_version_suffix "$topdir")
radix=${topdir%-"$ver"}
printf '%s\t%s\n' "${FILES_CHKSUM[$f]}" "$radix-$last_ver/$f"
printf '%s\t%s\n' "${FILES_CHKSUM[$f]}" "${radix}${ver_suffix_inside_tarball}/${f}"
done | LC_ALL=C sort -k2 > "$archive_name"/sha256sum.txt

( cd "${archive_name}"/; set -x
Expand Down

0 comments on commit bc28739

Please sign in to comment.