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-461673-garchives=archives.gentoo.org@lists.gentoo.org>)
	id 1STFei-0007cT-KE
	for garchives@archives.gentoo.org; Sat, 12 May 2012 16:58:56 +0000
Received: from pigeon.gentoo.org (localhost [127.0.0.1])
	by pigeon.gentoo.org (Postfix) with SMTP id A7A44E079C;
	Sat, 12 May 2012 16:58:39 +0000 (UTC)
Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183])
	by pigeon.gentoo.org (Postfix) with ESMTP id 76160E079C
	for <gentoo-commits@lists.gentoo.org>; Sat, 12 May 2012 16:58:39 +0000 (UTC)
Received: from hornbill.gentoo.org (hornbill.gentoo.org [94.100.119.163])
	(using TLSv1 with cipher AECDH-AES256-SHA (256/256 bits))
	(No client certificate requested)
	by smtp.gentoo.org (Postfix) with ESMTPS id DECC71B4056
	for <gentoo-commits@lists.gentoo.org>; Sat, 12 May 2012 16:58:37 +0000 (UTC)
Received: from localhost.localdomain (localhost [127.0.0.1])
	by hornbill.gentoo.org (Postfix) with ESMTP id 9FD60E542F
	for <gentoo-commits@lists.gentoo.org>; Sat, 12 May 2012 16:58:36 +0000 (UTC)
From: "Diego Elio Pettenò" <flameeyes@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Content-type: text/plain; charset=UTF-8
Reply-To: gentoo-dev@lists.gentoo.org, "Diego Elio Pettenò" <flameeyes@gentoo.org>
Message-ID: <1336841178.834ac216cd4681fca649222048940868f3b81204.flameeyes@gentoo>
Subject: [gentoo-commits] proj/hwids:master commit in: /
X-VCS-Repository: proj/hwids
X-VCS-Files: Makefile dist.sh fetch.sh
X-VCS-Directories: /
X-VCS-Committer: flameeyes
X-VCS-Committer-Name: Diego Elio Pettenò
X-VCS-Revision: 834ac216cd4681fca649222048940868f3b81204
X-VCS-Branch: master
Date: Sat, 12 May 2012 16:58:36 +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: 170a4a87-9b24-4dae-bdea-b12510a6deed
X-Archives-Hash: ccf0205d2560365f595f05155c75cff5

commit:     834ac216cd4681fca649222048940868f3b81204
Author:     Diego Elio Petten=C3=B2 <flameeyes <AT> flameeyes <DOT> eu>
AuthorDate: Sat May 12 16:46:18 2012 +0000
Commit:     Diego Elio Petten=C3=B2 <flameeyes <AT> gentoo <DOT> org>
CommitDate: Sat May 12 16:46:18 2012 +0000
URL:        http://git.overlays.gentoo.org/gitweb/?p=3Dproj/hwids.git;a=3D=
commit;h=3D834ac216

Replace the two scripts with a single Makefile.

---
 Makefile |   15 +++++++++++++++
 dist.sh  |    7 -------
 fetch.sh |    4 ----
 3 files changed, 15 insertions(+), 11 deletions(-)

diff --git a/Makefile b/Makefile
new file mode 100644
index 0000000..a27933b
--- /dev/null
+++ b/Makefile
@@ -0,0 +1,15 @@
+# can be replaced with `wget -q -O -` if you want
+HTTPCAT =3D curl
+
+fetch:
+	$(HTTPCAT) http://pci-ids.ucw.cz/v2.2/pci.ids.bz2 | bzcat > pci.ids
+	$(HTTPCAT) http://www.linux-usb.org/usb.ids.bz2 | bzcat > usb.ids
+
+PV ?=3D $(shell date +%Y%m%d)
+P =3D hwids-$(PV)
+
+dist: $(P).tar.xz
+
+$(P).tar.xz:
+	git tag $(P)
+	git archive --prefix=3D$(P)/ $(P) | xz -9e > $(P).tar.xz

diff --git a/dist.sh b/dist.sh
deleted file mode 100755
index c39289b..0000000
--- a/dist.sh
+++ /dev/null
@@ -1,7 +0,0 @@
-#!/bin/sh
-
-PV=3D${1:-$(date +%Y%m%d)}
-P=3Dhwids-${PV}
-
-git tag ${P}
-git archive --prefix=3D${P}/ ${P} | xz -9e > ${P}.tar.xz

diff --git a/fetch.sh b/fetch.sh
deleted file mode 100755
index 6846191..0000000
--- a/fetch.sh
+++ /dev/null
@@ -1,4 +0,0 @@
-#!/bin/sh
-
-curl http://pci-ids.ucw.cz/v2.2/pci.ids.bz2 | bzcat > pci.ids
-curl http://www.linux-usb.org/usb.ids.bz2 | bzcat > usb.ids