From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with archive (Exim 4.43) id 1Lrb4a-0007ic-R1 for mharc-grub-devel@gnu.org; Wed, 08 Apr 2009 12:56:24 -0400 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Lrb4Y-0007iO-G7 for grub-devel@gnu.org; Wed, 08 Apr 2009 12:56:22 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1Lrb4U-0007gY-M5 for grub-devel@gnu.org; Wed, 08 Apr 2009 12:56:22 -0400 Received: from [199.232.76.173] (port=57476 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Lrb4U-0007gO-Gi for grub-devel@gnu.org; Wed, 08 Apr 2009 12:56:18 -0400 Received: from mail-fx0-f166.google.com ([209.85.220.166]:58039) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1Lrb4T-0003OD-UO for grub-devel@gnu.org; Wed, 08 Apr 2009 12:56:18 -0400 Received: by fxm10 with SMTP id 10so236770fxm.42 for ; Wed, 08 Apr 2009 09:56:17 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from :user-agent:mime-version:to:subject:content-type; bh=KFSzg7vGpSof9bbvLRdxRlIUqupe/49tCU+6QcgtCuE=; b=vg3IVEML+hAQvlrF8PEfG3ZB4x1yf4GZ1197NgnBJ0TF6U39itLnohMDycmKveFcJf 4a/RJQQ7z5ACtHen+J3Xhy8PIwgzXHiJboldcFt+HdN2al4DgJQ4L9S159dDHtZTv2vC M1w53bIHVHE7djS7SFsD2bpn2G7726ICC62Tw= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:user-agent:mime-version:to:subject :content-type; b=h3gvihiIUcu808Rt7a5pfaATIqDmn7Bv6bIrN13q4JfjpUvopEA7Oo5XSZJmTUDQu7 sXmfk8CpW+Geey3DRebbsSjK0Jgo6xFgkDzkhccpPuBD7Ic15rzWPzlXu8/ks69Oyi47 dvnPyM8S6PEsyDjDfqFkSCb/efD7N6QVyDz9E= Received: by 10.103.169.18 with SMTP id w18mr685201muo.73.1239209776544; Wed, 08 Apr 2009 09:56:16 -0700 (PDT) Received: from ?82.130.80.24? (hg-public-dock-24-dhcp.ethz.ch [82.130.80.24]) by mx.google.com with ESMTPS id 23sm14067223mum.37.2009.04.08.09.56.15 (version=SSLv3 cipher=RC4-MD5); Wed, 08 Apr 2009 09:56:16 -0700 (PDT) Message-ID: <49DCD729.8020707@gmail.com> Date: Wed, 08 Apr 2009 18:56:09 +0200 From: phcoder User-Agent: Thunderbird 2.0.0.21 (X11/20090318) MIME-Version: 1.0 To: The development of GRUB 2 Content-Type: multipart/mixed; boundary="------------050407030204070905040808" X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 2) Subject: [PATCH] build binary tar.gz from source X-BeenThere: grub-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: The development of GRUB 2 List-Id: The development of GRUB 2 List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 08 Apr 2009 16:56:23 -0000 This is a multi-part message in MIME format. --------------050407030204070905040808 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Hello. Here is a patch to add new target distbin which creates a binary tar.gz. The main purpose is for the possible nightly builds -- Regards Vladimir 'phcoder' Serbinenko --------------050407030204070905040808 Content-Type: text/x-diff; name="tarbuild.diff" Content-Transfer-Encoding: 7bit Content-Disposition: inline; filename="tarbuild.diff" diff --git a/ChangeLog b/ChangeLog index c679982..1fd827a 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,10 @@ +2009-04-08 Vladimir Serbinenko + + Creating binary tar.gz from compile directory + + * Makefile.in (distbin): new target + (grub2.tar.gz): likewise + 2009-04-07 David S. Miller * kern/sparc64/dl.c (grub_arch_dl_relocate_symbols): Add diff --git a/Makefile.in b/Makefile.in index d6e55e7..a3c5d11 100644 --- a/Makefile.in +++ b/Makefile.in @@ -191,6 +191,81 @@ include_DATA += $(shell find $(srcdir)/include -name \*.h | sed -e "s,^$(srcdir) all-local: $(PROGRAMS) $(PKGLIB) $(PKGDATA) $(SCRIPTS) $(MKFILES) +distbin: grub2.tar.gz + +grub2.tar.gz: all + rm -rf tar + mkdir -p tar/$(includedir); + mkdir -p tar/$(pkglibdir); + mkdir -p tar/$(bindir); + mkdir -p tar/$(sbindir); + mkdir -p tar/$(pkgdatadir); + mkdir -p tar/$(mandir)/man1 ; + mkdir -p tar/$(mandir)/man8 ; + mkdir -p tar/$(sysconfdir)/grub.d; + @list='$(PKGLIB)'; \ + for file in $$list; do \ + if test -f "$$file"; then dir=; else dir="$(srcdir)/"; fi; \ + dest="`echo $$file | sed 's,.*/,,'`"; \ + cp -d $$dir$$file tar/$(pkglibdir)/$$dest; \ + done + @list='$(include_DATA)'; \ + for file in $$list; do \ + if test -f "$$file"; then dir=; else dir="$(srcdir)/"; fi; \ + dest="`echo $$file | sed 's,include/,,'`"; \ + destdir="`echo $$dest | sed 's,\(^\|/\)[^/]*$$,,g'`"; \ + mkdir -p tar/$(includedir)/$$destdir; \ + cp -d $$dir$$file tar/$(includedir)/$$dest; \ + done + @list='$(PKGDATA)'; \ + for file in $$list; do \ + if test -f "$$file"; then dir=; else dir="$(srcdir)/"; fi; \ + dest="`echo $$file | sed 's,.*/,,'`"; \ + cp -d $$dir$$file tar/$(pkgdatadir)/$$dest; \ + done + @list='$(bin_UTILITIES)'; for file in $$list; do \ + if test -f "$$file"; then dir=; else dir="$(srcdir)/"; fi; \ + dest="`echo $$file | sed 's,.*/,,' | sed '$(transform)'`"; \ + cp -d $$dir$$file tar/$(bindir)/$$dest; \ + $(HELP2MAN) --section=1 $(builddir)/$$file > tar/$(mandir)/man1/$$dest.1; \ + done + @list='$(sbin_UTILITIES)'; for file in $$list; do \ + if test -f "$$file"; then dir=; else dir="$(srcdir)/"; fi; \ + dest="`echo $$file | sed 's,.*/,,' | sed '$(transform)'`"; \ + cp -d $$dir$$file tar/$(sbindir)/$$dest; \ + $(HELP2MAN) --section=8 $(builddir)/$$file > tar/$(mandir)/man1/$$dest.8; \ + done + @list='$(bin_SCRIPTS)'; for file in $$list; do \ + if test -f "$$file"; then dir=; else dir="$(srcdir)/"; fi; \ + dest="`echo $$file | sed 's,.*/,,' | sed '$(transform)'`"; \ + cp -d $$dir$$file tar/$(bindir)/$$dest; \ + $(HELP2MAN) --section=1 $(builddir)/$$file > tar/$(mandir)/man1/$$dest.1; \ + done + @list='$(sbin_SCRIPTS)'; for file in $$list; do \ + if test -f "$$file"; then dir=; else dir="$(srcdir)/"; fi; \ + dest="`echo $$file | sed 's,.*/,,' | sed '$(transform)'`"; \ + cp -d $$dir$$file tar/$(sbindir)/$$dest; \ + $(HELP2MAN) --section=8 $(builddir)/$$file > tar/$(mandir)/man1/$$dest.8; \ + done + @list='$(grub-mkconfig_SCRIPTS)'; for file in $$list; do \ + if test -f "$$file"; then dir=; else dir="$(srcdir)/"; fi; \ + dest="`echo $$file | sed 's,.*/,,' | sed '$(transform)'`"; \ + cp -d $$dir$$file tar/$(sysconfdir)/grub.d/$$dest; \ + done + @list='$(grub-mkconfig_DATA)'; for file in $$list; do \ + if test -f "$$file"; then dir=; else dir="$(srcdir)/"; fi; \ + dest="`echo $$file | sed 's,.*/,,' | sed '$(transform)'`"; \ + cp -d $$dir$$file tar/$(sysconfdir)/grub.d/$$dest; \ + done + @list='$(lib_DATA)'; \ + for file in $$list; do \ + if test -f "$$file"; then dir=; else dir="$(srcdir)/"; fi; \ + dest="`echo $$file | sed 's,.*/,,'`"; \ + cp -d $$dir$$file tar/$(libdir)/grub/$$dest; \ + done + tar -czf $@ --transform 's,^tar/,,' tar/* + rm -rf tar + install: install-local install-local: all --------------050407030204070905040808--