diff options
author | Richard Levitte <levitte@openssl.org> | 2002-12-15 05:59:13 +0000 |
---|---|---|
committer | Richard Levitte <levitte@openssl.org> | 2002-12-15 05:59:13 +0000 |
commit | 30c08f2e3d7f7dca254d8341cdecc7ad37a9f62a (patch) | |
tree | 754dd66390b2ace7cadd1b27c7aaa62d8a93a997 /apps | |
parent | 9f100cf3441a56bdb4404bf5cc9747085e2c53a0 (diff) | |
download | openssl-30c08f2e3d7f7dca254d8341cdecc7ad37a9f62a.tar.gz |
Update the make system for installations:
- define a HERE variable to indicate where the source tree is (used
very little right now)
- make more use of copying and making attribute changes to {file}.new,
and then move it to {file}
- use 'mv -f' to avoid all those questions to the user when the file
in question doesn't have write attributes for that user.
Diffstat (limited to 'apps')
-rw-r--r-- | apps/Makefile.ssl | 15 |
1 files changed, 9 insertions, 6 deletions
diff --git a/apps/Makefile.ssl b/apps/Makefile.ssl index 1908f8dd34..78192363c4 100644 --- a/apps/Makefile.ssl +++ b/apps/Makefile.ssl @@ -99,17 +99,20 @@ install: @for i in $(EXE); \ do \ (echo installing $$i; \ - cp $$i $(INSTALL_PREFIX)$(INSTALLTOP)/bin/$$i; \ - chmod 755 $(INSTALL_PREFIX)$(INSTALLTOP)/bin/$$i ); \ + cp $$i $(INSTALL_PREFIX)$(INSTALLTOP)/bin/$$i.new; \ + chmod 755 $(INSTALL_PREFIX)$(INSTALLTOP)/bin/$$i.new; \ + mv -f $(INSTALL_PREFIX)$(INSTALLTOP)/bin/$$i.new $(INSTALL_PREFIX)$(INSTALLTOP)/bin/$$i ); \ done; @for i in $(SCRIPTS); \ do \ (echo installing $$i; \ - cp $$i $(INSTALL_PREFIX)$(OPENSSLDIR)/misc/$$i; \ - chmod 755 $(INSTALL_PREFIX)$(OPENSSLDIR)/misc/$$i ); \ + cp $$i $(INSTALL_PREFIX)$(OPENSSLDIR)/misc/$$i.new; \ + chmod 755 $(INSTALL_PREFIX)$(OPENSSLDIR)/misc/$$i.new; \ + mv -f $(INSTALL_PREFIX)$(INSTALLTOP)/misc/$$i.new $(INSTALL_PREFIX)$(INSTALLTOP)/misc/$$i ); \ done - @cp openssl.cnf $(INSTALL_PREFIX)$(OPENSSLDIR); \ - chmod 644 $(INSTALL_PREFIX)$(OPENSSLDIR)/openssl.cnf + @cp openssl.cnf $(INSTALL_PREFIX)$(OPENSSLDIR)/openssl.cnf.new; \ + chmod 644 $(INSTALL_PREFIX)$(OPENSSLDIR)/openssl.cnf.new; \ + mv -f $(INSTALL_PREFIX)$(OPENSSLDIR)/openssl.cnf.new $(INSTALL_PREFIX)$(OPENSSLDIR)/openssl.cnf tags: ctags $(SRC) |