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() { ...@@ -31,7 +31,7 @@ do_sign() {
sig=".SIGN.RSA.$keyname" sig=".SIGN.RSA.$keyname"
openssl dgst -sha1 -sign "$privkey" -out "$sig" "$i" openssl dgst -sha1 -sign "$privkey" -out "$sig" "$i"
tmptargz=$(mktemp) tmptargz=$(mktemp)
tar -c "$sig" | abuild-tar --cut | gzip -9 > "$tmptargz" tar -f - -c "$sig" | abuild-tar --cut | gzip -9 > "$tmptargz"
tmpsigned=$(mktemp) tmpsigned=$(mktemp)
cat "$tmptargz" "$i" > "$tmpsigned" cat "$tmptargz" "$i" > "$tmpsigned"
rm -f "$tmptargz" "$sig" rm -f "$tmptargz" "$sig"
......
...@@ -1375,7 +1375,7 @@ create_apks() { ...@@ -1375,7 +1375,7 @@ create_apks() {
touch .dummy touch .dummy
set -- .dummy set -- .dummy
fi 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..." msg "Create checksum..."
# append the hash for data.tar.gz # append the hash for data.tar.gz
...@@ -1384,7 +1384,7 @@ create_apks() { ...@@ -1384,7 +1384,7 @@ create_apks() {
# control.tar.gz # control.tar.gz
cd "$dir" cd "$dir"
tar -c $(cat "$dir"/.metafiles) | abuild-tar --cut \ tar -f - -c $(cat "$dir"/.metafiles) | abuild-tar --cut \
| gzip -9 > control.tar.gz | gzip -9 > control.tar.gz
abuild-sign -q control.tar.gz || exit 1 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