From mboxrd@z Thu Jan  1 00:00:00 1970
Received: from pigeon.gentoo.org ([208.92.234.80] helo=lists.gentoo.org)
	by finch.gentoo.org with esmtp (Exim 4.60)
	(envelope-from <gentoo-commits+bounces-397236-garchives=archives.gentoo.org@lists.gentoo.org>)
	id 1RKfFh-0002g1-Dl
	for garchives@archives.gentoo.org; Sun, 30 Oct 2011 23:57:21 +0000
Received: from pigeon.gentoo.org (localhost [127.0.0.1])
	by pigeon.gentoo.org (Postfix) with SMTP id E4CA321C031;
	Sun, 30 Oct 2011 23:57:13 +0000 (UTC)
Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183])
	by pigeon.gentoo.org (Postfix) with ESMTP id B261F21C031
	for <gentoo-commits@lists.gentoo.org>; Sun, 30 Oct 2011 23:57:13 +0000 (UTC)
Received: from pelican.gentoo.org (unknown [66.219.59.40])
	(using TLSv1 with cipher AECDH-AES256-SHA (256/256 bits))
	(No client certificate requested)
	by smtp.gentoo.org (Postfix) with ESMTPS id 38F241B4010
	for <gentoo-commits@lists.gentoo.org>; Sun, 30 Oct 2011 23:57:13 +0000 (UTC)
Received: from localhost.localdomain (localhost [127.0.0.1])
	by pelican.gentoo.org (Postfix) with ESMTP id 333AA80042
	for <gentoo-commits@lists.gentoo.org>; Sun, 30 Oct 2011 23:57:12 +0000 (UTC)
From: "William Hubbs" <williamh@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Content-type: text/plain; charset=UTF-8
Reply-To: gentoo-dev@lists.gentoo.org, "William Hubbs" <williamh@gentoo.org>
Message-ID: <67f11ceb548f69b005bcf0576adcf1badbc7e511.WilliamH@gentoo>
Subject: [gentoo-commits] proj/udev-gentoo-scripts:master commit in: /
X-VCS-Repository: proj/udev-gentoo-scripts
X-VCS-Files: Makefile
X-VCS-Directories: /
X-VCS-Committer: WilliamH
X-VCS-Committer-Name: William Hubbs
X-VCS-Revision: 67f11ceb548f69b005bcf0576adcf1badbc7e511
Date: Sun, 30 Oct 2011 23:57:12 +0000 (UTC)
Precedence: bulk
List-Post: <mailto:gentoo-commits@lists.gentoo.org>
List-Help: <mailto:gentoo-commits+help@lists.gentoo.org>
List-Unsubscribe: <mailto:gentoo-commits+unsubscribe@lists.gentoo.org>
List-Subscribe: <mailto:gentoo-commits+subscribe@lists.gentoo.org>
List-Id: Gentoo Linux mail <gentoo-commits.gentoo.org>
X-BeenThere: gentoo-commits@lists.gentoo.org
Content-Transfer-Encoding: quoted-printable
X-Archives-Salt: 80bfca28-3d36-4b23-b967-7fb1ec8f6a70
X-Archives-Hash: eb158fc7d211fda31a868fdbf9ba82a4

commit:     67f11ceb548f69b005bcf0576adcf1badbc7e511
Author:     William Hubbs <williamh <AT> gentoo <DOT> org>
AuthorDate: Sun Oct 30 23:46:04 2011 +0000
Commit:     William Hubbs <williamh <AT> gentoo <DOT> org>
CommitDate: Sun Oct 30 23:46:04 2011 +0000
URL:        http://git.overlays.gentoo.org/gitweb/?p=3Dproj/udev-gentoo-s=
cripts.git;a=3Dcommit;h=3D67f11ceb

Update makefile dist target and add snapshot target

The snapshot target makes a tarball named udev-gentoo-scripts.tar.bz2
which consists of whatever is at the current head of the master branch.
The dist target makes a tarball based on the tag set in the VERSION
makefile variable. This makes it possible to recreate a tarball of any
released version of the scripts by doing make VERSION=3Dwhatever dist.

---
 Makefile |   17 +++++++++++------
 1 files changed, 11 insertions(+), 6 deletions(-)

diff --git a/Makefile b/Makefile
index 3fbfda4..dfe1862 100644
--- a/Makefile
+++ b/Makefile
@@ -1,3 +1,7 @@
+PACKAGE =3D udev-gentoo-scripts
+VERSION =3D v4
+DISTNAME =3D $(PACKAGE)-$(VERSION)
+
 LIBUDEV ?=3D /lib/udev
 RULESDIR ?=3D $(LIBUDEV)/rules.d
 SYSCONFDIR ?=3D /etc
@@ -5,10 +9,6 @@ CONFD ?=3D $(SYSCONFDIR)/conf.d
 INITD ?=3D $(SYSCONFDIR)/init.d
 MODPROBE_DIR ?=3D $(SYSCONFDIR)/modprobe.d
=20
-VERSION =3D $(shell git describe --tags)
-
-DESTNAME =3D udev-gentoo-scripts-$(VERSION)
-
 HELPERS =3D \
 	helpers/net.sh \
 	helpers/write_root_link_rule
@@ -35,8 +35,13 @@ check-git-repository:
 check test:
 	@cd test; ./run_test.sh
=20
-dist: check-git-repository test
-	git archive --format=3Dtar --prefix=3D$(DESTNAME)/ HEAD | bzip2 > $(DES=
TNAME).tar.bz2
+dist:
+	git archive --format=3Dtar --prefix=3D$(DISTNAME)/ $(VERSION) | \
+		bzip2 > $(DISTNAME).tar.bz2
+
+snapshot: check-git-repository
+	git archive --format=3Dtar --prefix=3D$(PACKAGE)/ HEAD | \
+		bzip2 > $(PACKAGE).tar.bz2
=20
 .PHONY: install test
=20