[Orca-checkins] rev 216 - trunk/orca/data_gatherers/orca_services

blair at orcaware.com blair at orcaware.com
Wed Mar 19 11:14:10 PST 2003


Author: blair
Date: 2003-03-19 11:14:01 -0800 (Wed, 19 Mar 2003)
New Revision: 216

Modified:
   trunk/orca/data_gatherers/orca_services/Makefile.in
Log:
* data_gatherers/orca_services/Makefile.in
  It's rude to install a configuration file over an already existing
  configuration file.  So instead of backing up the already installed
  configuration file into a filename that contains the current time,
  install the new configuration file into a filename that contains the
  current time.


Modified: trunk/orca/data_gatherers/orca_services/Makefile.in
==============================================================================
--- trunk/orca/data_gatherers/orca_services/Makefile.in	(original)
+++ trunk/orca/data_gatherers/orca_services/Makefile.in	2003-03-19 11:14:05.000000000 -0800
@@ -55,10 +55,14 @@
 	  echo $(INSTALL) $$file $(libexecdir); \
 	  $(INSTALL) $$file $(libexecdir); \
 	done
-	if test -r $(sysconfdir)/orca_services.cfg; then \
-	  cp -p $(sysconfdir)/orca_services.cfg $(sysconfdir)/orca_services.cfg.`date +%Y-%m-%d-%H:%M:%S`; \
+	@if test -r $(sysconfdir)/orca_services.cfg; then \
+	  date="`date +%Y-%m-%d-%H:%M:%S`"; \
+	  echo $(INSTALL) -m 0644 orca_services.cfg $(sysconfdir)/orca_services.cfg.$$date; \
+	  $(INSTALL) -m 0644 orca_services.cfg $(sysconfdir)/orca_services.cfg.$$date; \
+	else \
+	  echo $(INSTALL) -m 0644 orca_services.cfg $(sysconfdir); \
+	  $(INSTALL) -m 0644 orca_services.cfg $(sysconfdir); \
 	fi
-	$(INSTALL) -m 0644 orca_services.cfg $(sysconfdir)
 
 orca_services_run_at_boot: all
 	test "$(INIT_D_DIR)"



More information about the Orca-checkins mailing list