From: "William Hubbs" <williamh@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] proj/baselayout:master commit in: /
Date: Wed, 6 Aug 2014 19:49:26 +0000 (UTC) [thread overview]
Message-ID: <1407354318.62f7c82bf8b0bdbec552b912e0f2e698fd23935f.williamh@gentoo> (raw)
commit: 62f7c82bf8b0bdbec552b912e0f2e698fd23935f
Author: William Hubbs <williamh <AT> gentoo <DOT> org>
AuthorDate: Wed Aug 6 19:45:18 2014 +0000
Commit: William Hubbs <williamh <AT> gentoo <DOT> org>
CommitDate: Wed Aug 6 19:45:18 2014 +0000
URL: http://git.overlays.gentoo.org/gitweb/?p=proj/baselayout.git;a=commit;h=62f7c82b
Begin updating Makefile to work with git
Make live is used to make a tarball of the repository with all local
changes.
make release is used to make a release once it is tagged.
make snapshot is a work in progress; it is supposed to make a tarball of
the commit passed to it via GITREF=<commit>. The part that is missing is
I haven't decided how to name that tarball.
---
Makefile | 39 ++++++++++++---------------------------
1 file changed, 12 insertions(+), 27 deletions(-)
diff --git a/Makefile b/Makefile
index d55914f..45df6ad 100644
--- a/Makefile
+++ b/Makefile
@@ -9,6 +9,7 @@
PV = 2.3
PKG = baselayout-$(PV)
+DISTFILE = $(PKG).tar.bz2
DESTDIR =
@@ -86,39 +87,23 @@ layout: layout-dirs layout-$(OS)
# FHS compatibility symlinks stuff
ln -snf /var/tmp $(DESTDIR)/usr/tmp
-diststatus:
- @if [ -z "$(PV)" ] ; then \
- printf '\nrun: make dist PV=...\n\n'; \
- exit 1; \
- fi
- if test -d .svn ; then \
- svnfiles=`svn status 2>&1 | egrep -v '^(U|P)'` ; \
- if test "x$$svnfiles" != "x" ; then \
- echo "Refusing to package tarball until svn is in sync:" ; \
- echo "$$svnfiles" ; \
- echo "make distforce to force packaging" ; \
- exit 1 ; \
- fi \
- fi
-
-distlive:
+live:
rm -rf /tmp/$(PKG)
cp -r . /tmp/$(PKG)
- tar jcf /tmp/$(PKG).tar.bz2 -C /tmp $(PKG) --exclude=.svn
+ tar jcf /tmp/$(PKG).tar.bz2 -C /tmp $(PKG) --exclude=.git
rm -rf /tmp/$(PKG)
ls -l /tmp/$(PKG).tar.bz2
-distsvn:
- rm -rf $(PKG)
- svn export -q . $(PKG)
- echo $(PV) > $(PKG)/.pv
- svn log . > $(PKG)/ChangeLog.svn
- tar jcf $(PKG).tar.bz2 $(PKG)
- rm -rf $(PKG)
- ls -l $(PKG).tar.bz2
+release:
+ git show-ref -q --tags $(PKG)
+ git archive --prefix=$(PKG)/ $(PKG) | bzip2 > $(DISTFILE)
+ ls -l $(DISTFILE)
-dist: diststatus distsvn
+snapshot:
+ git show-ref -q $(GITREF)
+ git archive --prefix=$(PKG)/ $(GITREF) | bzip2 > $(PKG)-$(GITREF).tar.bz2
+ ls -l $(PKG)-$(GITREF).tar.bz2
-.PHONY: all clean install layout dist distforce diststatus
+.PHONY: all clean install layout live release snapshot
# vim: set ts=4 :
next reply other threads:[~2014-08-06 19:49 UTC|newest]
Thread overview: 50+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-08-06 19:49 William Hubbs [this message]
-- strict thread matches above, loose matches on Subject: below --
2024-11-04 19:49 [gentoo-commits] proj/baselayout:master commit in: / Mike Gilbert
2024-11-03 23:33 Mike Gilbert
2024-03-12 1:39 Mike Gilbert
2023-07-09 1:24 Mike Gilbert
2023-07-09 1:24 Mike Gilbert
2023-07-09 1:17 Mike Gilbert
2023-07-09 1:17 Mike Gilbert
2023-01-28 2:08 Mike Gilbert
2023-01-28 2:08 Mike Gilbert
2023-01-28 0:33 Mike Gilbert
2023-01-27 18:15 William Hubbs
2023-01-27 18:15 William Hubbs
2023-01-27 18:12 William Hubbs
2023-01-27 17:20 William Hubbs
2023-01-27 17:20 William Hubbs
2023-01-26 3:48 William Hubbs
2023-01-26 0:08 William Hubbs
2023-01-25 21:23 William Hubbs
2022-09-18 21:44 William Hubbs
2022-09-18 4:28 William Hubbs
2022-09-18 3:22 Mike Gilbert
2022-09-18 3:03 Mike Gilbert
2021-09-27 21:48 William Hubbs
2021-09-27 21:44 William Hubbs
2021-09-27 21:24 William Hubbs
2021-09-27 20:56 William Hubbs
2021-09-27 17:46 William Hubbs
2021-09-24 19:56 William Hubbs
2021-05-11 15:48 William Hubbs
2020-02-10 4:21 William Hubbs
2020-02-10 4:21 William Hubbs
2018-05-28 19:31 William Hubbs
2018-05-28 19:31 William Hubbs
2018-05-26 20:17 William Hubbs
2018-05-26 20:17 William Hubbs
2018-05-23 21:50 William Hubbs
2018-02-22 17:54 William Hubbs
2018-02-07 19:11 William Hubbs
2018-02-06 22:54 William Hubbs
2017-11-17 22:04 William Hubbs
2017-10-03 22:02 William Hubbs
2017-08-21 19:45 William Hubbs
2017-06-09 18:38 William Hubbs
2017-06-09 18:38 William Hubbs
2017-06-08 17:35 William Hubbs
2016-09-01 20:56 William Hubbs
2016-09-01 20:56 William Hubbs
2014-08-13 18:08 William Hubbs
2014-08-06 15:07 William Hubbs
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=1407354318.62f7c82bf8b0bdbec552b912e0f2e698fd23935f.williamh@gentoo \
--to=williamh@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