public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
From: "Christian Ruppert" <idl0r@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] proj/gentoo-vdr-scripts:master commit in: /
Date: Mon, 13 Feb 2012 18:28:44 +0000 (UTC)	[thread overview]
Message-ID: <1329157661.dda7e2a3f84e6818f0c46c55f342f7e51802db5f.idl0r@gentoo> (raw)

commit:     dda7e2a3f84e6818f0c46c55f342f7e51802db5f
Author:     Christian Ruppert <idl0r <AT> gentoo <DOT> org>
AuthorDate: Mon Feb 13 18:27:41 2012 +0000
Commit:     Christian Ruppert <idl0r <AT> gentoo <DOT> org>
CommitDate: Mon Feb 13 18:27:41 2012 +0000
URL:        http://git.overlays.gentoo.org/gitweb/?p=proj/gentoo-vdr-scripts.git;a=commit;h=dda7e2a3

Update dist target for git

---
 Makefile |   24 +++++++-----------------
 1 files changed, 7 insertions(+), 17 deletions(-)

diff --git a/Makefile b/Makefile
index c36f711..25021b8 100644
--- a/Makefile
+++ b/Makefile
@@ -9,20 +9,12 @@ all:
 VERSION := $(shell grep '^Version' README | awk '{ print $$2 }')
 TMPDIR = /tmp
 ARCHIVE = gentoo-vdr-scripts-$(VERSION)
-PACKAGE = $(ARCHIVE)
-
-info:
-	@echo VERSION: $(VERSION)
-	@[ -d ../tags/$(VERSION) ] && echo "Already tagged in svn"
-	@echo
-	@[ -d .svn ] && svn info
+PACKAGE = $(ARCHIVE).tar.bz2
+GITREF ?= HEAD
 
 dist:
-	@-rm -rf $(TMPDIR)/$(ARCHIVE)
-	@svn export . $(TMPDIR)/$(ARCHIVE)
-	@tar cjf $(PACKAGE).tar.bz2 -C $(TMPDIR) $(ARCHIVE)
-	@-rm -rf $(TMPDIR)/$(ARCHIVE)
-	@echo Distribution package created as $(PACKAGE).tar.bz2
+	@git archive --prefix=$(ARCHIVE)/ $(GITREF) | bzip2 > $(PACKAGE)
+	@echo Distribution package created as $(PACKAGE)
 
 install:
 	@for DIR in $(SUBDIRS); do \
@@ -31,10 +23,8 @@ install:
 	@install -m 0755 -o vdr -g vdr -d $(DESTDIR)/var/vdr/{shutdown-data,merged-config-files}
 
 snapshot:
-	svn export . gentoo-vdr-scripts-snapshot
-	tar cvfz gentoo-vdr-scripts-snapshot.tgz gentoo-vdr-scripts-snapshot
-	scp gentoo-vdr-scripts-snapshot.tgz dev.gentoo.org:public_html/distfiles/gentoo-vdr-scripts-snapshot.tgz
-	rm gentoo-vdr-scripts-snapshot.tgz
-	rm -rf gentoo-vdr-scripts-snapshot
+	git archive HEAD | bzip2 gentoo-vdr-scripts-snapshot.tar.bz2
+	scp gentoo-vdr-scripts-snapshot.tar.bz2 dev.gentoo.org:public_html/distfiles/gentoo-vdr-scripts-snapshot.tar.bz2
+	rm gentoo-vdr-scripts-snapshot.tar.bz2
 
 .PHONY: all compile install snapshot



             reply	other threads:[~2012-02-13 18:28 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-02-13 18:28 Christian Ruppert [this message]
  -- strict thread matches above, loose matches on Subject: below --
2012-02-13 18:28 [gentoo-commits] proj/gentoo-vdr-scripts:master commit in: / Christian Ruppert

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=1329157661.dda7e2a3f84e6818f0c46c55f342f7e51802db5f.idl0r@gentoo \
    --to=idl0r@gentoo.org \
    --cc=gentoo-commits@lists.gentoo.org \
    --cc=gentoo-dev@lists.gentoo.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