| MoveDiscs: bring the saved discs and the auto-mount list of an earlier
| !LanMan98 into !Choices.  Run once from !Run, which guards it with the
| Moved marker this leaves behind.
|
| Up to 3.24 both lived inside the application.  The Updater replaces an
| application whole -- it moves the old one into $.Updates.Backup and puts
| the new one in its place -- so anything the user had saved inside it went
| with the old copy.  From 3.25 they are in !Choices, where no update
| touches them.
|
| The discs are copied as a directory to a name that is not there yet, so
| an empty one copies without complaint and nothing already in !Choices is
| overwritten: !Run has not made Discs at this point, and the test below
| skips the copy if some other version already did.
|
| They are copied rather than moved: the old application is about to be
| replaced anyway, and a copy that fails half way leaves the originals.

| Where the old copies may be.  An update does not leave them in the
| application: the Updater replaces an application whole, moving the old
| one into <disc>.Updates.Backup first (Updater c/engine.c commit_disc,
| c/osfs.c roots), so on the very update that brings 3.25 in, the discs
| are already in that backup and not here.  !Boot is in the disc's root,
| so ^ from it is that root.  A hand copied or unpacked !LanMan98 still
| has them inside it, so both are tried, the application first.
| Nothing here may stop !Run: a copy that fails (a full disc, a backup that
| is only half there) must leave LanMan98 starting, merely without the old
| discs.  Each Copy is therefore run with X, a word of its own, which drops
| the error; XCopy would be looked for as a command and not found.  The
| directory is made first, so a copy has somewhere to go.
X CDir <LM98$Dir>
Set LM98$Old <LanMan98$Dir>
Set LM98$Backup <Boot$Dir>.^.Updates.Backup.Disc.Apps.!LanMan98

Set LM98$Have no
IfThere <LM98$Dir>.Discs Then Set LM98$Have yes
IF "<LM98$Have>" = "no" THEN IfThere <LM98$Old>.Discs Then X Copy <LM98$Old>.Discs <LM98$Dir>.Discs ~C ~V R
IfThere <LM98$Dir>.Discs Then Set LM98$Have yes
IF "<LM98$Have>" = "no" THEN IfThere <LM98$Backup>.Discs Then X Copy <LM98$Backup>.Discs <LM98$Dir>.Discs ~C ~V R
Unset LM98$Have

Set LM98$Have no
IfThere <LM98$Dir>.AutoMount Then Set LM98$Have yes
IF "<LM98$Have>" = "no" THEN IfThere <LM98$Old>.AutoMount Then X Copy <LM98$Old>.AutoMount <LM98$Dir>.AutoMount ~C ~V
IfThere <LM98$Dir>.AutoMount Then Set LM98$Have yes
IF "<LM98$Have>" = "no" THEN IfThere <LM98$Backup>.AutoMount Then X Copy <LM98$Backup>.AutoMount <LM98$Dir>.AutoMount ~C ~V
Unset LM98$Have
Unset LM98$Old
Unset LM98$Backup

| Considered: do not look again.
X Create <LM98$Dir>.Moved 0
