[Orca-checkins] rev 214 - trunk/orca/data_gatherers/orcallator
blair at orcaware.com
blair at orcaware.com
Tue Mar 18 21:46:51 PST 2003
Author: blair
Date: 2003-03-18 21:46:32 -0800 (Tue, 18 Mar 2003)
New Revision: 214
Modified:
trunk/orca/data_gatherers/orcallator/Makefile.in
Log:
* data_gatherers/orcallator/Makefile.in (install):
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/orcallator/Makefile.in
==============================================================================
--- trunk/orca/data_gatherers/orcallator/Makefile.in (original)
+++ trunk/orca/data_gatherers/orcallator/Makefile.in 2003-03-18 21:46:45.000000000 -0800
@@ -53,10 +53,14 @@
$(INSTALL) $$file $(bindir); \
done
$(INSTALL) -m 0644 orcallator.se $(libdir)
- if test -r $(sysconfdir)/orcallator.cfg; then \
- cp -p $(sysconfdir)/orcallator.cfg $(sysconfdir)/orcallator.cfg.`date +%Y-%m-%d-%H:%M:%S`; \
+ @if test -r $(sysconfdir)/orcallator.cfg; then \
+ date="`date +%Y-%m-%d-%H:%M:%S`"; \
+ echo $(INSTALL) -m 0644 orcallator.cfg $(sysconfdir)/orcallator.cfg.$$date; \
+ $(INSTALL) -m 0644 orcallator.cfg $(sysconfdir)/orcallator.cfg.$$date; \
+ else \
+ echo $(INSTALL) -m 0644 orcallator.cfg $(sysconfdir); \
+ $(INSTALL) -m 0644 orcallator.cfg $(sysconfdir); \
fi
- $(INSTALL) -m 0644 orcallator.cfg $(sysconfdir)
orcallator_run_at_boot: all
test "$(INIT_D_DIR)"
More information about the Orca-checkins
mailing list