qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
From: Carlo Marcelo Arenas Belon <carenas@sajinet.com.pe>
To: qemu-devel@nongnu.org
Subject: [Qemu-devel] [PATCH] add a SNAPSHOT flag to be able to generate snapshots from CVS
Date: Mon, 22 Jan 2007 05:11:33 -0600	[thread overview]
Message-ID: <20070122111133.GC2618@tapir.sajinet.com.pe> (raw)

[-- Attachment #1: Type: text/plain, Size: 475 bytes --]

Greetings,

The following patch adds a "SNAPSHOT" variable to the Makefile which can be
changed to "yes" (or any other value) so that `make -k tar` generates a
snapshot tar (on a configured or not CVS tree) instead of a release source tar
(useful when debugging a version of the CVS tree) by using a generated version 
based on the current date through GNU date.

Only the name of the tar is changed so to keep all internal logic that relies
in the version unchanged.

Carlo

[-- Attachment #2: qemu-snapshot.patch --]
[-- Type: text/plain, Size: 722 bytes --]

Index: Makefile
===================================================================
RCS file: /sources/qemu/qemu/Makefile,v
retrieving revision 1.110
diff -u -r1.110 Makefile
--- Makefile	7 Jan 2007 22:04:40 -0000	1.110
+++ Makefile	22 Jan 2007 09:50:17 -0000
@@ -8,6 +8,8 @@
 BASE_CFLAGS=
 BASE_LDFLAGS=
 
+SNAPSHOT=
+
 BASE_CFLAGS += $(OS_CFLAGS)
 ifeq ($(ARCH),sparc)
 BASE_CFLAGS += -mcpu=ultrasparc
@@ -128,7 +130,15 @@
 
 html: qemu-doc.html qemu-tech.html
 
-FILE=qemu-$(shell cat VERSION)
+ifndef VERSION
+VERSION=$(shell cat VERSION)
+endif
+
+ifneq ($(SNAPSHOT),)
+SNAPSHOT=.$(shell date -u "+%Y%m%d%H%M")
+endif
+
+FILE=qemu-$(VERSION)$(SNAPSHOT)
 
 # tar release (use 'make -k tar' on a checkouted tree)
 tar:

             reply	other threads:[~2007-01-22 10:59 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-01-22 11:11 Carlo Marcelo Arenas Belon [this message]
2007-01-24 22:58 ` [Qemu-devel] [PATCH] add a SNAPSHOT flag to be able to generate snapshots from CVS Thiemo Seufer

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20070122111133.GC2618@tapir.sajinet.com.pe \
    --to=carenas@sajinet.com.pe \
    --cc=qemu-devel@nongnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).