Go into subdirectory when checksumming/signing

Signed-off-by: Alexey Neyman <stilor@att.net>
This commit is contained in:
Alexey Neyman 2017-03-23 23:18:30 -07:00
parent e26f04a9d9
commit 32231e9200

View File

@ -95,9 +95,9 @@ do_trace "Packaging"
for fmt in "${formats[@]}"; do for fmt in "${formats[@]}"; do
tar c${tar_opt[$fmt]}f "release/${version}.tar.${fmt}" -C "release" "${version}" tar c${tar_opt[$fmt]}f "release/${version}.tar.${fmt}" -C "release" "${version}"
for h in "${digests[@]}"; do for h in "${digests[@]}"; do
${h}sum "release/${version}.tar.${fmt}" > "release/${version}.tar.${fmt}.${h}" (cd "release" && ${h}sum "${version}.tar.${fmt}") > "release/${version}.tar.${fmt}.${h}"
done done
if [ "${use_gpg}" = "yes" ]; then if [ "${use_gpg}" = "yes" ]; then
gpg --detach-sign "release/${version}.tar.${fmt}" (cd "release" && gpg --detach-sign "${version}.tar.${fmt}")
fi fi
done done