Don't overwrite config on make install if it already exists

Sun, 30 Nov 2008 01:16:55 +0000

author
Matthew Wild <mwild1@gmail.com>
date
Sun, 30 Nov 2008 01:16:55 +0000
changeset 501
ea61e191043e
parent 500
6468ea154296
child 502
21dc299387a6

Don't overwrite config on make install if it already exists

Makefile file | annotate | diff | comparison | revisions
--- a/Makefile	Sun Nov 30 06:14:41 2008 +0500
+++ b/Makefile	Sun Nov 30 01:16:55 2008 +0000
@@ -25,7 +25,7 @@
 	install -m644 plugins/* $(MODULES)
 	install -m644 certs/* $(CONFIG)/certs
 	install -m644 plugins/* $(MODULES)
-	install -m644 prosody.cfg.lua.install $(CONFIG)/prosody.cfg.lua
+	test -e $(CONFIG)/prosody.cfg.lua || install -m644 prosody.cfg.lua.install $(CONFIG)/prosody.cfg.lua
 	$(MAKE) install -C util-src
 
 clean:

mercurial