From: "Tim O Callaghan" <timo@dspsrv.com>
To: git@vger.kernel.org
Subject: [PATCH] First cut of a Cygwin package creation target.
Date: Tue, 11 Oct 2005 15:26:33 +0100 (IST) [thread overview]
Message-ID: <23711.145.36.10.111.1129040793.squirrel@www.dspsrv.com> (raw)
The new make target 'cygwinpackage' creates dist tars based on the
Cygwin package guidelines at:http://cygwin.com/setup.html
The tar packages when created are placed in the cygwin directory with
the Cygwin setup specific setup.hint file, ready for distribution.
Signed-off-by: Tim O'Callaghan <timo@dspsrv.com>
---
Makefile | 20 ++++++++++++++++++++
cygwin/setup.hint | 11 +++++++++++
2 files changed, 31 insertions(+), 0 deletions(-)
mode change 100644 => 100755 Makefile
create mode 100755 cygwin/setup.hint
applies-to: 2bab3caf63fc29f249c792289365abaf1cfa071b
ba3be06048f361afc80baae30b00dd6e022386d0
diff --git a/Makefile b/Makefile
old mode 100644
new mode 100755
index c31af7b..1a227ed
--- a/Makefile
+++ b/Makefile
@@ -441,6 +441,26 @@ deb: dist
dpkg-source -b $(GIT_TARNAME)
cd $(GIT_TARNAME) && fakeroot debian/rules binary
+unexport prefix
+export prefix=/
+export DESTDIR=/tmp/cygwin/usr
+cygwinpackage: all
+ strip -s *.exe
+ rm -f $(GIT_TARNAME)*.tar*
+ ./git-tar-tree HEAD $(GIT_TARNAME) > $(GIT_TARNAME)-src.tar
+ mkdir -p $(GIT_TARNAME)
+ cp README $(GIT_TARNAME)/git-core-$(GIT_VERSION).README
+ $(TAR) rf $(GIT_TARNAME).tar
$(GIT_TARNAME)/git-core-$(GIT_VERSION).README
+ @rm -rf $(GIT_TARNAME)
+ bzip2 $(GIT_TARNAME)-src.tar
+ rm -rf $(DESTDIR)
+ mkdir -p $(DESTDIR)/man/man1 $(DESTDIR)/man/man7
$(DESTDIR)/share/Cygwin
+ cp README $(DESTDIR)/share/Cygwin/git-core-$(GIT_VERSION).README
+ $(MAKE) install
+ $(MAKE) -C Documentation install
+ cd /tmp/cygwin; $(TAR) -jcf /tmp/$(GIT_TARNAME).tar.bz2 *
+ mv /tmp/$(GIT_TARNAME).tar.bz2 ./$(GIT_TARNAME)-src.tar.bz2 ./cygwin
+
### Cleaning rules
clean:
diff --git a/cygwin/setup.hint b/cygwin/setup.hint
new file mode 100755
index 0000000..580eecc
--- /dev/null
+++ b/cygwin/setup.hint
@@ -0,0 +1,11 @@
+# git-core setup.hint - file required by cygwin package manager
+#
+# short description
+sdesc: "Git-core - SCM Developed for the Linux kernel"
+# long description
+ldesc: "Git-core - SCM Developed for the Linux kernel - now available to
the windows masses via the magic of Cygwin"
+# package category
+category: Archive Devel
+# dependencies
+requires: cygwin libiconv zlib openssl curl-devel diff merge ssh
+
---
0.99.8.GIT
next reply other threads:[~2005-10-11 14:27 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-10-11 14:26 Tim O Callaghan [this message]
2005-10-11 14:39 ` [PATCH] First cut of a Cygwin package creation target Tim O Callaghan
2005-10-11 22:48 ` Junio C Hamano
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=23711.145.36.10.111.1129040793.squirrel@www.dspsrv.com \
--to=timo@dspsrv.com \
--cc=git@vger.kernel.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;
as well as URLs for NNTP newsgroup(s).