summaryrefslogtreecommitdiff
path: root/bin/srcdist.rawball
diff options
context:
space:
mode:
authormidipix <writeonce@midipix.org>2020-01-25 00:01:34 +0000
committermidipix <writeonce@midipix.org>2020-01-25 00:01:34 +0000
commit63968cbf3e4ce7083f0910acb48608e49cd10b63 (patch)
tree15c99e8d307a2ac20a1478b82ce499ae60b688e4 /bin/srcdist.rawball
parent349e272f641c58998c67bda8d6b381ca4449ed63 (diff)
downloadsrcdist-63968cbf3e4ce7083f0910acb48608e49cd10b63.tar.bz2
srcdist-63968cbf3e4ce7083f0910acb48608e49cd10b63.tar.xz
srcdist.rawball: refactor references to the rawball manifest file.
Diffstat (limited to 'bin/srcdist.rawball')
-rwxr-xr-xbin/srcdist.rawball7
1 files changed, 4 insertions, 3 deletions
diff --git a/bin/srcdist.rawball b/bin/srcdist.rawball
index 5df09ea..4906e23 100755
--- a/bin/srcdist.rawball
+++ b/bin/srcdist.rawball
@@ -14,6 +14,7 @@ mb_tarball_sha256=
mb_script="$0"
mb_status=1
+mb_manifest=MANIFEST.rawball
export LC_ALL=C
@@ -137,16 +138,16 @@ rawball_extract_upstream_tarball()
mb_packed=$(find ${mb_rawdir} -type f | sort)
mb_refobj=$(find ${mb_rawdir} -type f -printf "%T@ %p\n" | sort -n | cut -d' ' -f 2- | tail -n 1)
- mb_status=$(cd -- ${mb_rawdir}; sha256sum $(find . -type f | sort) > MANIFEST.RAWBALL)
+ mb_status=$(cd -- ${mb_rawdir}; sha256sum $(find . -type f | sort) > ${mb_manifest})
touch -a -c -m -r ${mb_refobj} $(find ${mb_rawdir} -type d)
- touch -a -c -m -r ${mb_refobj} ${mb_rawdir}/MANIFEST.RAWBALL
+ touch -a -c -m -r ${mb_refobj} ${mb_rawdir}/${mb_manifest}
touch -a -c -m -r ${mb_refobj} ${mb_rawdir}
}
rawball_create_downstream_rawball()
{
- pax -w -x tar ${mb_packed} ${mb_rawdir}/MANIFEST.RAWBALL | xz -c > "$mb_rawball"
+ pax -w -x tar ${mb_packed} ${mb_rawdir}/${mb_manifest} | xz -c > "$mb_rawball"
}
# init variables and verify arguments