Commit 597a7f16 authored by A. Wilcox's avatar A. Wilcox Committed by Timo Teräs

abuild: call tar portably

parent 9dd4a70e
......@@ -31,7 +31,7 @@ do_sign() {
sig=".SIGN.RSA.$keyname"
openssl dgst -sha1 -sign "$privkey" -out "$sig" "$i"
tmptargz=$(mktemp)
tar -c "$sig" | abuild-tar --cut | gzip -9 > "$tmptargz"
tar -f - -c "$sig" | abuild-tar --cut | gzip -9 > "$tmptargz"
tmpsigned=$(mktemp)
cat "$tmptargz" "$i" > "$tmpsigned"
rm -f "$tmptargz" "$sig"
......
......@@ -1375,7 +1375,7 @@ create_apks() {
touch .dummy
set -- .dummy
fi
tar --xattrs -c "$@" | abuild-tar --hash | gzip -9 >"$dir"/data.tar.gz
tar --xattrs -f - -c "$@" | abuild-tar --hash | gzip -9 >"$dir"/data.tar.gz
msg "Create checksum..."
# append the hash for data.tar.gz
......@@ -1384,7 +1384,7 @@ create_apks() {
# control.tar.gz
cd "$dir"
tar -c $(cat "$dir"/.metafiles) | abuild-tar --cut \
tar -f - -c $(cat "$dir"/.metafiles) | abuild-tar --cut \
| gzip -9 > control.tar.gz
abuild-sign -q control.tar.gz || exit 1
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment