During the installation phase the $(SHELLDIR) directory is created
before rm -rf is run for various directories.
If a user decides to encapsulate the package so that all files are
installed under a single parent directory, the $(SHELLDIR) will be
removed immediately after being created. This causes a failure when
the executable shell script is later installed.
This patch simply places all mkdir -p commands after all rm -r
commands.
It has no effect on functionality except in the case mentioned where
the $(SHELLDIR) is beneath $(FILE_AREA_VAR)
visible and uuencoded versions of the patch follow.
--- slashem-0.0.7E7F2.orig/sys/unix/Makefile.top 2005-12-04
09:58:27.000000000 -0500
+++ slashem-0.0.7E7F2/sys/unix/Makefile.top 2006-07-26
14:20:04.000000000 -0400
@@ -354,10 +354,10 @@
install: $(GAME) recover $(CNF_SHARE_DAT) dungeon spec_levs
Guidebook.txt
# set up the directories
# not all mkdirs have -p; those that don't will create a -p directory
- -mkdir -p $(SHELLDIR)
-rm -rf $(FILE_AREA_VAR) $(FILE_AREA_BONES) $
(FILE_AREA_SAVE)
-rm -rf $(FILE_AREA_LEVL) $(FILE_AREA_SHARE) $
(FILE_AREA_UNSHARE)
-rm -rf $(FILE_AREA_DOC)
+ -mkdir -p $(SHELLDIR)
-mkdir -p $(FILE_AREA_VAR) $(FILE_AREA_BONES) $
(FILE_AREA_SAVE)
-mkdir -p $(FILE_AREA_LEVL) $(FILE_AREA_SHARE) $
(FILE_AREA_UNSHARE)
-mkdir -p $(FILE_AREA_DOC)
a uuencoded patch file to sys/unix/Makefile.top