[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Xen-changelog] [xen-3.1-testing] src-tarball: Remove source control metadata.



# HG changeset patch
# User Keir Fraser <keir.fraser@xxxxxxxxxx>
# Date 1208805533 -3600
# Node ID 1eeab3da5cb6837ea6231b9ad9e76ab9175f0d9a
# Parent  070592cb8d464cc0abb79b2aec802bd0a11cecb8
src-tarball: Remove source control metadata.
Signed-off-by: Keir Fraser <keir.fraser@xxxxxxxxxx>
xen-unstable changeset:   17489:b3e53e17d87a
xen-unstable date:        Mon Apr 21 20:21:39 2008 +0100

Cache figlet output across builds, and provide src-tarball target
which creates figlet output and then deletes figlet itself (which is
not licensed under GPL).

Signed-off-by: Keir Fraser <keir.fraser@xxxxxxxxxx>
xen-unstable changeset:   17488:b2e28707ecbb
xen-unstable date:        Mon Apr 21 20:08:29 2008 +0100
---
 .hgignore          |    1 +
 Makefile           |    7 +++++++
 xen/Makefile       |   12 ++++++++++--
 xen/tools/Makefile |    4 ++--
 4 files changed, 20 insertions(+), 4 deletions(-)

diff -r 070592cb8d46 -r 1eeab3da5cb6 .hgignore
--- a/.hgignore Fri Apr 11 13:24:44 2008 +0100
+++ b/.hgignore Mon Apr 21 20:18:53 2008 +0100
@@ -206,6 +206,7 @@
 ^tools/xm-test/lib/XmTestLib/config.py$
 ^tools/xm-test/lib/XmTestReport/xmtest.py$
 ^tools/xm-test/tests/.*\.test$
+^xen/\.banner.*$
 ^xen/BLOG$
 ^xen/TAGS$
 ^xen/arch/x86/asm-offsets\.s$
diff -r 070592cb8d46 -r 1eeab3da5cb6 Makefile
--- a/Makefile  Fri Apr 11 13:24:44 2008 +0100
+++ b/Makefile  Mon Apr 21 20:18:53 2008 +0100
@@ -127,6 +127,13 @@ distclean:
 # Linux name for GNU distclean
 .PHONY: mrproper
 mrproper: distclean
+
+# Prepare for source tarball
+.PHONY: src-tarball
+src-tarball: distclean
+       $(MAKE) -C xen .banner
+       rm -rf xen/tools/figlet .[a-z]*
+       $(MAKE) -C xen distclean
 
 .PHONY: help
 help:
diff -r 070592cb8d46 -r 1eeab3da5cb6 xen/Makefile
--- a/xen/Makefile      Fri Apr 11 13:24:44 2008 +0100
+++ b/xen/Makefile      Mon Apr 21 20:18:53 2008 +0100
@@ -60,6 +60,7 @@ _clean: delete-unfresh-files
        rm -f include/asm *.o $(TARGET)* *~ core
        rm -f include/asm-*/asm-offsets.h
        rm -f include/xen/acm_policy.h
+       [ -d tools/figlet ] && rm -f .banner*
 
 .PHONY: _distclean
 _distclean: clean
@@ -101,8 +102,14 @@ include/xen/acm_policy.h:
          echo "#define ACM_DEFAULT_SECURITY_POLICY 
$(ACM_DEFAULT_SECURITY_POLICY)"; \
          echo "#endif") >$@
 
+.banner: Makefile
+       $(MAKE) -C tools
+       @tools/figlet/figlet -d tools/figlet Xen $(XEN_FULLVERSION) 2>$@2 >$@1
+       @cat $@1 $@2 >$@
+       @rm -f $@1 $@2
+
 # compile.h contains dynamic build info. Rebuilt on every 'make' invocation.
-include/xen/compile.h: include/xen/compile.h.in
+include/xen/compile.h: include/xen/compile.h.in .banner
        @sed -e 's/@@date@@/$(shell LC_ALL=C date)/g' \
            -e 's/@@time@@/$(shell LC_ALL=C date +%T)/g' \
            -e 's/@@whoami@@/$(USER)/g' \
@@ -114,7 +121,8 @@ include/xen/compile.h: include/xen/compi
            -e 's/@@extraversion@@/$(XEN_EXTRAVERSION)/g' \
            -e 's!@@changeset@@!$(shell ((hg parents --template "{date|date} 
{rev}:{node|short}" >/dev/null && hg parents --template "{date|date} 
{rev}:{node|short}") || echo "unavailable") 2>/dev/null)!g' \
            < include/xen/compile.h.in > $@.new
-       tools/figlet/figlet -d tools/figlet Xen $(XEN_FULLVERSION) >> $@.new
+       @grep \" .banner >> $@.new
+       @grep -v \" .banner
        @mv -f $@.new $@
 
 include/asm-$(TARGET_ARCH)/asm-offsets.h: arch/$(TARGET_ARCH)/asm-offsets.s
diff -r 070592cb8d46 -r 1eeab3da5cb6 xen/tools/Makefile
--- a/xen/tools/Makefile        Fri Apr 11 13:24:44 2008 +0100
+++ b/xen/tools/Makefile        Mon Apr 21 20:18:53 2008 +0100
@@ -4,12 +4,12 @@ include $(XEN_ROOT)/Config.mk
 
 .PHONY: default
 default:
-       $(MAKE) -C figlet
+       [ -d figlet ] && $(MAKE) -C figlet
        $(MAKE) symbols
 
 .PHONY: clean
 clean:
-       $(MAKE) -C figlet clean
+       [ -d figlet ] && $(MAKE) -C figlet clean
        rm -f *.o symbols
 
 symbols: symbols.c

_______________________________________________
Xen-changelog mailing list
Xen-changelog@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-changelog


 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.