diff options
Diffstat (limited to 'Master/tlpkg/bin/tl-update-tlcritical')
-rwxr-xr-x | Master/tlpkg/bin/tl-update-tlcritical | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/Master/tlpkg/bin/tl-update-tlcritical b/Master/tlpkg/bin/tl-update-tlcritical index d172d196369..a5e2a6f128f 100755 --- a/Master/tlpkg/bin/tl-update-tlcritical +++ b/Master/tlpkg/bin/tl-update-tlcritical @@ -98,9 +98,21 @@ do_updater sh # update the Windows updater executable. echo "$0: running tl-update-nsis... (logfile: $TMPDIR/makensis.log)" +# +# we have to remove the tlpobj subdir ourselves, since it's created +# by tl-update-nsis, but read by makensis. (But if it already exists, +# don't remove it.) +tlpobj=$master/tlpkg/tlpobj +if test -d "$tlpobj"; then + keep_tlpobj=true +else + keep_tlpobj=false +fi +# tl-update-nsis >$TMPDIR/updater.nsi makensis $TMPDIR/updater.nsi >$TMPDIR/makensis.log rm -f $TMPDIR/updater.nsi +$keep_tlpobj || rm -rf $tlpobj do_updater exe echo $tlcrit: |