summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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:"