-------------------- AmigaOS 3.1.4.(1) project -----------------------

New in release 45.1 (5.4.2018)

- Added the ALL option to create directories recursively.

----------------------- AmigaOS 3.2 project --------------------------

Changes for release 45.2 (21.4.2019):

- Error messages are now printed over pr_CES.

Changes for release 47.1 (28.11.2019)

- Bumped to v47.

----------------------- AmigaOS 3.3 project --------------------------

Changes for release 47.2 (10.05.2021)

- Added ICON argument to create drawer icons along with directories (copies def_drawer.info)
- VSCode broke indentation, re-formatted using 4 spaces


makedir 48.1 (24.12.2021)

- Now fully reentrant again.

- Code reformatted again using GNU indent and CygnusEd, back to 4 spaces per tab.

- MakeDir can now be aborted with Ctrl+C or the Break command,
  in case you badly need it to stop.

- Copying the optional icon file now verifies that every step on the
  way to get the file created succeeds.

- The 'struct FileInfoBlock' used by the icon file copying function is now
  always as perfectly aligned as it needs to be, even on Christmas Day :-)

- No longer peeks SysBase->ThisTask because that's bad form.

- Now checks if the reason why Lock(name, SHARED_LOCK) failed is anything
  other than ERROR_OBJECT_NOT_FOUND and stops with an error message if so.
  Previously, MakeDir would just keep going regardless of what went
  wrong.

- Replaced the old VFPrintf() fiddling with calls to FPrintf().

- Got rid of the local vsprintf() implementation. CopyMem() is good
  enough for us.


makedir 48.2 (1.1.2022)

- Successful creation of a directory should have cleared the error
  status of the Lock() attempt which first checked if the directory
  to be created already existed. Now it does...


makedir 48.3 (23.4.2023)

- Shaved off a few levels of indentation because, you know, it
  wouldn't be the same with all this blank space cluttering up
  the furniture.

- Of course, everthing needs to be more complicated than it always
  used to be, with the "ALL" option present.

- You can now use the Break command or hit [Ctrl+C] to stop the
  path creation loop implied by the "ALL" option.

- Cleaning up after the path creation loop needs to both restore
  the original current directory which the MakeDir command was
  invoked with and release the lock obtained on the last directory,
  if there was one. Also, that lock must never be released twice!

- If something goes sideways while trying to create the directory
  path, MakeDir now shows the path name it was trying to create
  at this point, instead of showing the full path name as given
  by the user. This could actually be somewhat helpful.

- The original code's use of the "rc2" variable overlapped with
  what the code which dealt with the "ALL" option would use its
  own "res2" variable for. This could lead to the path creation
  succeeding, yet MakeDir would complain that a file could not
  be found. Fixed by using just the "rc2" variable and meaning it.

- The copy_icon() function now checks if the file copied could be
  closed correctly. If not, the icon file created will be deleted.
