summaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
authorRichard Levitte <levitte@openssl.org>2002-12-15 05:59:13 +0000
committerRichard Levitte <levitte@openssl.org>2002-12-15 05:59:13 +0000
commit30c08f2e3d7f7dca254d8341cdecc7ad37a9f62a (patch)
tree754dd66390b2ace7cadd1b27c7aaa62d8a93a997 /tools
parent9f100cf3441a56bdb4404bf5cc9747085e2c53a0 (diff)
downloadopenssl-new-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 'tools')
-rw-r--r--tools/Makefile.ssl10
1 files changed, 6 insertions, 4 deletions
diff --git a/tools/Makefile.ssl b/tools/Makefile.ssl
index b46ea44f6a..832b744375 100644
--- a/tools/Makefile.ssl
+++ b/tools/Makefile.ssl
@@ -27,13 +27,15 @@ all:
install:
@for i in $(APPS) ; \
do \
- (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 $(MISC_APPS) ; \
do \
- (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;
files: