Check that we have write permissions to GNUSTEP_INSTALLATION_DIR before

attempting to install, and if we don't, abort with an error message


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/tools/make/trunk@10836 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
Nicola Pero 2001-09-03 11:08:22 +00:00
parent 5e46c3781b
commit cda89c9de0
2 changed files with 15 additions and 0 deletions

View file

@ -1,3 +1,9 @@
Mon Sep 3 15:13:49 2001 Nicola Pero <n.pero@mi.flashnet.it>
* rules.make (before-install): If MAKELEVEL is 0, check that
GNUSTEP_INSTALLATION_DIR is writable by us; if it isn't, abort
with an error message.
Fri Aug 31 15:33:30 2001 Nicola Pero <nicola@brainstorm.co.uk>
* bundle.make (bundle-localized-resource-files): Bug fix - added

View file

@ -91,7 +91,16 @@ internal-all::
after-all::
ifeq ($(MAKELEVEL),0)
before-install::
@if [ ! -w $(GNUSTEP_INSTALLATION_DIR) ]; then \
echo "Sorry, the software is configured to install itself into $(GNUSTEP_INSTALLATION_DIR)"; \
echo "but you do not have permissions to write in that directory - aborting installation."; \
exit 1; \
fi;
else
before-install::
endif
internal-install::