netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] add a `make dist` helper
@ 2012-12-14  6:34 Mike Frysinger
  0 siblings, 0 replies; 5+ messages in thread
From: Mike Frysinger @ 2012-12-14  6:34 UTC (permalink / raw)
  To: stephen.hemminger, netdev

This makes sure the tarball is always created in the same way.
Avoids accidental typos in path names for example.

Signed-off-by: Mike Frysinger <vapier@gentoo.org>
---
 .gitignore |  1 +
 Makefile   | 10 ++++++++++
 2 files changed, 11 insertions(+)

diff --git a/.gitignore b/.gitignore
index 3ba2632..e4490f4 100644
--- a/.gitignore
+++ b/.gitignore
@@ -1,3 +1,4 @@
+iproute2-*.tar*
 static-syms.h
 config.*
 Config
diff --git a/Makefile b/Makefile
index 46a5ad9..198abea 100644
--- a/Makefile
+++ b/Makefile
@@ -75,6 +75,16 @@ clobber:
 
 distclean: clobber
 
+GIT_ARCHIVE = git archive --prefix=iproute2-$(VER)/ v$(VER) | $(1) > iproute2-$(VER).tar.$(2)
+dist.gz:  ; $(call GIT_ARCHIVE,gzip,gz)
+dist.bz2: ; $(call GIT_ARCHIVE,bzip2,bz2)
+dist.xz:  ; $(call GIT_ARCHIVE,xz,xz)
+dist:
+ifeq ($(VER),)
+	@echo "Usage: make dist VER=3.7.0"; false
+endif
+	$(MAKE) dist.gz dist.bz2 dist.xz
+
 cscope:
 	cscope -b -q -R -Iinclude -sip -slib -smisc -snetem -stc
 
-- 
1.8.0

^ permalink raw reply related	[flat|nested] 5+ messages in thread

* Re: [PATCH] add a `make dist` helper
  2012-12-16 21:57   ` Mike Frysinger
@ 2012-12-17 16:13     ` Stephen Hemminger
  0 siblings, 0 replies; 5+ messages in thread
From: Stephen Hemminger @ 2012-12-17 16:13 UTC (permalink / raw)
  To: Mike Frysinger; +Cc: Stephen Hemminger, netdev

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

On Sun, 16 Dec 2012 16:57:14 -0500
Mike Frysinger <vapier@gentoo.org> wrote:

> On Friday 14 December 2012 12:09:35 Stephen Hemminger wrote:
> > On Thu, 13 Dec 2012 23:16:10 -0800 Stephen Hemminger wrote:
> > > I appreciate the effort but there are a number of more steps to doing a
> > > release and I need to script them all together.
> 
> np
> 
> > The tarball's have been rebased, and I built a iproute2-release script for
> > next time.
> 
> commit it to the tree ? :)
> -mike

It has to many things that are unique to kernel.org and the package.
Plus at this time it only works for me

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 836 bytes --]

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [PATCH] add a `make dist` helper
  2012-12-14 17:09 ` Stephen Hemminger
@ 2012-12-16 21:57   ` Mike Frysinger
  2012-12-17 16:13     ` Stephen Hemminger
  0 siblings, 1 reply; 5+ messages in thread
From: Mike Frysinger @ 2012-12-16 21:57 UTC (permalink / raw)
  To: Stephen Hemminger; +Cc: Stephen Hemminger, netdev

[-- Attachment #1: Type: Text/Plain, Size: 380 bytes --]

On Friday 14 December 2012 12:09:35 Stephen Hemminger wrote:
> On Thu, 13 Dec 2012 23:16:10 -0800 Stephen Hemminger wrote:
> > I appreciate the effort but there are a number of more steps to doing a
> > release and I need to script them all together.

np

> The tarball's have been rebased, and I built a iproute2-release script for
> next time.

commit it to the tree ? :)
-mike

[-- Attachment #2: This is a digitally signed message part. --]
[-- Type: application/pgp-signature, Size: 836 bytes --]

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [PATCH] add a `make dist` helper
  2012-12-14  7:16 Stephen Hemminger
@ 2012-12-14 17:09 ` Stephen Hemminger
  2012-12-16 21:57   ` Mike Frysinger
  0 siblings, 1 reply; 5+ messages in thread
From: Stephen Hemminger @ 2012-12-14 17:09 UTC (permalink / raw)
  To: Stephen Hemminger; +Cc: Mike Frysinger, netdev

On Thu, 13 Dec 2012 23:16:10 -0800
Stephen Hemminger <stephen.hemminger@vyatta.com> wrote:

> 
> I appreciate the effort but there are a number of more steps to doing a release and I need to script them all together. 

The tarball's have been rebased, and I built a iproute2-release script for next time.

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [PATCH] add a `make dist` helper
@ 2012-12-14  7:16 Stephen Hemminger
  2012-12-14 17:09 ` Stephen Hemminger
  0 siblings, 1 reply; 5+ messages in thread
From: Stephen Hemminger @ 2012-12-14  7:16 UTC (permalink / raw)
  To: Mike Frysinger; +Cc: netdev


I appreciate the effort but there are a number of more steps to doing a release and I need to script them all together. 

Mike Frysinger <vapier@gentoo.org> wrote:

>This makes sure the tarball is always created in the same way.
>Avoids accidental typos in path names for example.
>
>Signed-off-by: Mike Frysinger <vapier@gentoo.org>
>---
> .gitignore |  1 +
> Makefile   | 10 ++++++++++
> 2 files changed, 11 insertions(+)
>
>diff --git a/.gitignore b/.gitignore
>index 3ba2632..e4490f4 100644
>--- a/.gitignore
>+++ b/.gitignore
>@@ -1,3 +1,4 @@
>+iproute2-*.tar*
> static-syms.h
> config.*
> Config
>diff --git a/Makefile b/Makefile
>index 46a5ad9..198abea 100644
>--- a/Makefile
>+++ b/Makefile
>@@ -75,6 +75,16 @@ clobber:
> 
> distclean: clobber
> 
>+GIT_ARCHIVE = git archive --prefix=iproute2-$(VER)/ v$(VER) | $(1) > iproute2-$(VER).tar.$(2)
>+dist.gz:  ; $(call GIT_ARCHIVE,gzip,gz)
>+dist.bz2: ; $(call GIT_ARCHIVE,bzip2,bz2)
>+dist.xz:  ; $(call GIT_ARCHIVE,xz,xz)
>+dist:
>+ifeq ($(VER),)
>+	@echo "Usage: make dist VER=3.7.0"; false
>+endif
>+	$(MAKE) dist.gz dist.bz2 dist.xz
>+
> cscope:
> 	cscope -b -q -R -Iinclude -sip -slib -smisc -snetem -stc
> 
>-- 
>1.8.0
>

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2012-12-17 16:14 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-12-14  6:34 [PATCH] add a `make dist` helper Mike Frysinger
2012-12-14  7:16 Stephen Hemminger
2012-12-14 17:09 ` Stephen Hemminger
2012-12-16 21:57   ` Mike Frysinger
2012-12-17 16:13     ` Stephen Hemminger

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).