summaryrefslogtreecommitdiff
path: root/Master
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2016-05-22 21:48:03 +0000
committerKarl Berry <karl@freefriends.org>2016-05-22 21:48:03 +0000
commit65043d5bda2d0e26d0581090bd1577df0a38f54a (patch)
treeeb6d346f1f8ae9d511c621b2decfd4c4b315e497 /Master
parentc515fbb64e8a56600398ac99bae8e60110ed6338 (diff)
make tlpdb checksums before making iso, else
what's on iso is wrong, due to prune-platforms changes. git-svn-id: svn://tug.org/texlive/trunk@41278 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master')
-rwxr-xr-xMaster/tlpkg/bin/tl-update-images22
1 files changed, 12 insertions, 10 deletions
diff --git a/Master/tlpkg/bin/tl-update-images b/Master/tlpkg/bin/tl-update-images
index 9d996fd011e..5266054eac7 100755
--- a/Master/tlpkg/bin/tl-update-images
+++ b/Master/tlpkg/bin/tl-update-images
@@ -116,6 +116,15 @@ MAKEINST ()
# some files we don't want in the image after all.
rm -rf $imgdir/doc.html $imgdir/tlpkg/texlive.tlpdb.xz $imgdir/tlpkg/bin
+ # since prune-platforms changes the tlpdb file, must remake checksums.
+ # (before making the iso). redundantly remove files being created.
+ rm -f $prefix.iso.md5; md5sum `basename $iso` >$iso.md5
+ rm -f $prefix.iso.sha512; sha512sum `basename $iso` >$iso.sha512
+
+ # for md5 and sha512, adjust the embedded filename for generic files.
+ rm -f $prefix.iso.md5; sed "s,-$D,," $iso.md5 >$prefix.iso.md5
+ rm -f $prefix.iso.sha512; sed "s,-$D,," $iso.sha512 >$prefix.iso.sha512
+
# the actual iso creation.
cd $imgdir || exit 1
cmd="$mkisofs $common_mkisofs_options -o $iso ."
@@ -130,14 +139,6 @@ MAKEINST ()
cd $target || exit 1
rm -rf $imgdir
- # make checksums; redundantly remove files being created.
- rm -f $prefix.iso.md5; md5sum `basename $iso` >$iso.md5
- rm -f $prefix.iso.sha512; sha512sum `basename $iso` >$iso.sha512
-
- # for md5 and sha512, have to adjust the embedded filename for generic files.
- rm -f $prefix.iso.md5; sed "s,-$D,," $iso.md5 >$prefix.iso.md5
- rm -f $prefix.iso.sha512; sed "s,-$D,," $iso.sha512 >$prefix.iso.sha512
-
# signed versioned and generic files.
rm -f $iso.sha512.asc
$master/tlpkg/bin/tl-sign-file $iso.sha512
@@ -145,8 +146,9 @@ MAKEINST ()
rm -f $prefix.iso.sha512.asc
$master/tlpkg/bin/tl-sign-file $prefix.iso.sha512
- # symlink with short name (potentially used in /etc/fstab).
- ln -s `basename $iso` $prefix.iso
+ # symlinks with short name (potentially used in /etc/fstab).
+ ln -s `basename $iso` $prefix.iso # with year
+ ln -s `basename $iso` $target/$NAME.iso # no year
cd $origdir || exit 1
echo "-- `date` iso files:"