From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) by finch.gentoo.org (Postfix) with ESMTP id BDC11138CAE for ; Sat, 2 May 2015 21:44:32 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 7CECDE0864; Sat, 2 May 2015 21:44:30 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 260B5E0864 for ; Sat, 2 May 2015 21:44:30 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id EB840340EBD for ; Sat, 2 May 2015 21:44:28 +0000 (UTC) Received: from localhost.localdomain (localhost [127.0.0.1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 9BE1F722 for ; Sat, 2 May 2015 21:44:25 +0000 (UTC) From: "William Hubbs" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "William Hubbs" Message-ID: <1430600303.4bd9670903829f38901356eae33c8ade04d32ed2.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: 4bd9670903829f38901356eae33c8ade04d32ed2 X-VCS-Branch: master Date: Sat, 2 May 2015 21:44:25 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Archives-Salt: 72a7d4c5-ebfb-4f53-a780-8981c3318958 X-Archives-Hash: 5768bb9a338efdb1eb10eb64e51666f1 commit: 4bd9670903829f38901356eae33c8ade04d32ed2 Author: William Hubbs gmail com> AuthorDate: Sat May 2 20:58:23 2015 +0000 Commit: William Hubbs gentoo org> CommitDate: Sat May 2 20:58:23 2015 +0000 URL: https://gitweb.gentoo.org/proj/udev-gentoo-scripts.git/commit/?id=4bd96709 Convert dist target to git built-in tarball handling The "git archive" command can create *.gz tarballs without piping through external utilities. The *.gz file is about the same size as a *.bz2 file, so using *.gz in this case doesn't change the size of the tarball significantly. Makefile | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/Makefile b/Makefile index 9f88d4d..c0f63a1 100644 --- a/Makefile +++ b/Makefile @@ -1,6 +1,6 @@ -PACKAGE = udev-init-scripts VERSION = 28 -DISTNAME = $(PACKAGE)-$(VERSION) +PACKAGE = udev-init-scripts +TARBALL = $(PACKAGE)-$(VERSION).tar.gz SYSCONFDIR ?= /etc CONFD ?= $(SYSCONFDIR)/conf.d @@ -19,8 +19,7 @@ check-git-repository: git diff --cached --quiet || { echo 'STOP, you have uncommitted changes in the index' ; false ; } dist: - git archive --format=tar --prefix=$(DISTNAME)/ $(VERSION) | \ - bzip2 > $(DISTNAME).tar.bz2 + git archive --prefix=$(PACKAGE)-$(VERSION)/ $(VERSION) -o $(TARBALL) snapshot: check-git-repository git archive --format=tar --prefix=$(PACKAGE)/ HEAD | \