git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] First cut of a Cygwin package creation target.
@ 2005-10-11 14:26 Tim O Callaghan
  2005-10-11 14:39 ` Tim O Callaghan
  2005-10-11 22:48 ` Junio C Hamano
  0 siblings, 2 replies; 3+ messages in thread
From: Tim O Callaghan @ 2005-10-11 14:26 UTC (permalink / raw)
  To: git


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

^ permalink raw reply related	[flat|nested] 3+ messages in thread

* Re: [PATCH] First cut of a Cygwin package creation target.
  2005-10-11 14:26 [PATCH] First cut of a Cygwin package creation target Tim O Callaghan
@ 2005-10-11 14:39 ` Tim O Callaghan
  2005-10-11 22:48 ` Junio C Hamano
  1 sibling, 0 replies; 3+ messages in thread
From: Tim O Callaghan @ 2005-10-11 14:39 UTC (permalink / raw)
  To: git

I should also mention that in my (probably misguided) enthusiasm for
the Cygwin port, i proposed myself as the package maintainer on the
cygwin-app list. If people don't think i'm gittish enough to handle
it, i am more than happy let them take over. Otherwise i will attempt
to go through the procedures needed to get it into the Cygwin distro.

For those interested, a copy of the generated Cygwin packages can be found
at:
http://www.dspsrv.com/~timo/

If there are no objections, i'll send them onto the Cygwin people sometime
tomorrow.

Tim.
"Money can't buy friends, but it can get you a better class of enemy."
- Spike Milligan

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [PATCH] First cut of a Cygwin package creation target.
  2005-10-11 14:26 [PATCH] First cut of a Cygwin package creation target Tim O Callaghan
  2005-10-11 14:39 ` Tim O Callaghan
@ 2005-10-11 22:48 ` Junio C Hamano
  1 sibling, 0 replies; 3+ messages in thread
From: Junio C Hamano @ 2005-10-11 22:48 UTC (permalink / raw)
  To: timo; +Cc: git

"Tim O Callaghan" <timo@dspsrv.com> writes:

> applies-to: 2bab3caf63fc29f249c792289365abaf1cfa071b
> ba3be06048f361afc80baae30b00dd6e022386d0
> diff --git a/Makefile b/Makefile
> old mode 100644
> new mode 100755

Is the mode change relevant to cygwin port?

> 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
> ...

Are these environment-mucking supposed to be only effective
while you are running cygwinpackage target, or are you breaking
everybody else?  I cannot offhand tell because your patch does
not apply for me to try it out, after your MUA munged it.

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2005-10-11 22:49 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2005-10-11 14:26 [PATCH] First cut of a Cygwin package creation target Tim O Callaghan
2005-10-11 14:39 ` Tim O Callaghan
2005-10-11 22:48 ` Junio C Hamano

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).