* [PATCH] A minor change to Makefile
@ 2005-07-16 4:27 Jiang, Yunhong
2005-07-16 16:04 ` Ulrich Drepper
0 siblings, 1 reply; 2+ messages in thread
From: Jiang, Yunhong @ 2005-07-16 4:27 UTC (permalink / raw)
To: xen-devel
At least on my FC3, the original date +%s does not work.
Thanks
Yunhong Jiang
Signed-off-by: Yunhong Jiang <yunhong.jiang@intel.com>
diff -r d75a502b45eb Makefile
--- a/Makefile Fri Jul 15 19:57:12 2005
+++ b/Makefile Sat Jul 16 12:26:28 2005
@@ -163,7 +163,7 @@
uninstall: DESTDIR=
uninstall: D=$(DESTDIR)
uninstall:
- [ -d $(D)/etc/xen ] && mv -f $(D)/etc/xen
$(D)/etc/xen.old-$(date +%s)
+ -[ -d $(D)/etc/xen ] && mv -f $(D)/etc/xen
$(D)/etc/xen.old-$(shell date +%s)
rm -rf $(D)/etc/init.d/xend*
rm -rf $(D)/usr/$(LIBDIR)/libxc* $(D)/usr/$(LIBDIR)/libxutil*
rm -rf $(D)/usr/$(LIBDIR)/python/xen $(D)/usr/include/xen
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: [PATCH] A minor change to Makefile
2005-07-16 4:27 [PATCH] A minor change to Makefile Jiang, Yunhong
@ 2005-07-16 16:04 ` Ulrich Drepper
0 siblings, 0 replies; 2+ messages in thread
From: Ulrich Drepper @ 2005-07-16 16:04 UTC (permalink / raw)
To: Jiang, Yunhong; +Cc: xen-devel
[-- Attachment #1.1: Type: text/plain, Size: 457 bytes --]
Jiang, Yunhong wrote:
> - [ -d $(D)/etc/xen ] && mv -f $(D)/etc/xen
> $(D)/etc/xen.old-$(date +%s)
> + -[ -d $(D)/etc/xen ] && mv -f $(D)/etc/xen
> $(D)/etc/xen.old-$(shell date +%s)
Not the right change. Use
[ -d $(D)/etc/xen ] && mv -f $(D)/etc/xen $(D)/etc/xen.old-$$(date +%s)
make needs the sub-shell command to be escaped (two $).
--
➧ Ulrich Drepper ➧ Red Hat, Inc. ➧ 444 Castro St ➧ Mountain View, CA ❖
[-- Attachment #1.2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 251 bytes --]
[-- Attachment #2: Type: text/plain, Size: 138 bytes --]
_______________________________________________
Xen-devel mailing list
Xen-devel@lists.xensource.com
http://lists.xensource.com/xen-devel
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2005-07-16 16:04 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-07-16 4:27 [PATCH] A minor change to Makefile Jiang, Yunhong
2005-07-16 16:04 ` Ulrich Drepper
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.