mirror of
https://github.com/rkd77/elinks.git
synced 2024-12-04 14:46:47 -05:00
mkdist: separate md5 file for each file
md5sum -c exits with code 1 if some of the files listed in the md5 file are missing, so each md5 file should list only those files that the user is supposed to download together. This is also how elinks-web/download.html has been set up.
This commit is contained in:
parent
0fa88b1c05
commit
d5dcdb4d92
@ -140,13 +140,14 @@ mv -- "$tmpdir/elinks" "$tmpdir/$tartopdir"
|
||||
(set -e
|
||||
cd -- "$tmpdir"
|
||||
tar cf "$tarbasename.tar" "$tartopdir"
|
||||
md5sum --binary -- "$tarbasename.tar" > "$tarbasename.md5"
|
||||
bzip2 --keep -- "$tarbasename.tar"
|
||||
gzip -9 -- "$tarbasename.tar"
|
||||
md5sum --binary -- "$tarbasename.tar.gz" "$tarbasename.tar.bz2" >> "$tarbasename.md5"
|
||||
md5sum --binary -- "$tarbasename.tar.gz" > "$tarbasename.tar.gz.md5"
|
||||
md5sum --binary -- "$tarbasename.tar.bz2" > "$tarbasename.tar.bz2.md5"
|
||||
) || exit 1
|
||||
|
||||
mv -- "$tmpdir/$tarbasename.tar.gz" "$outdir"
|
||||
mv -- "$tmpdir/$tarbasename.tar.bz2" "$outdir"
|
||||
mv -- "$tmpdir/$tarbasename.md5" "$outdir"
|
||||
mv -- "$tmpdir/$tarbasename.tar.gz" "$outdir"
|
||||
mv -- "$tmpdir/$tarbasename.tar.bz2" "$outdir"
|
||||
mv -- "$tmpdir/$tarbasename.tar.gz.md5" "$outdir"
|
||||
mv -- "$tmpdir/$tarbasename.tar.bz2.md5" "$outdir"
|
||||
rm -rf -- "$tmpdir"
|
||||
|
Loading…
Reference in New Issue
Block a user