From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Sven Joachim Newsgroups: gmane.emacs.devel Subject: Adding --lzma option to make-dist Date: Sun, 13 Jan 2008 09:48:02 +0100 Message-ID: <877iieru0t.fsf@gmx.de> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit X-Trace: ger.gmane.org 1200214036 8652 80.91.229.12 (13 Jan 2008 08:47:16 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sun, 13 Jan 2008 08:47:16 +0000 (UTC) To: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sun Jan 13 09:47:37 2008 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1JDyVE-0007qW-PW for ged-emacs-devel@m.gmane.org; Sun, 13 Jan 2008 09:47:37 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1JDyUq-0002lc-Nf for ged-emacs-devel@m.gmane.org; Sun, 13 Jan 2008 03:47:12 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1JDyUm-0002j6-18 for emacs-devel@gnu.org; Sun, 13 Jan 2008 03:47:08 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1JDyUj-0002i5-Gn for emacs-devel@gnu.org; Sun, 13 Jan 2008 03:47:06 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1JDyUj-0002i2-83 for emacs-devel@gnu.org; Sun, 13 Jan 2008 03:47:05 -0500 Original-Received: from mail.gmx.net ([213.165.64.20]) by monty-python.gnu.org with smtp (Exim 4.60) (envelope-from ) id 1JDyUi-0005J4-Pw for emacs-devel@gnu.org; Sun, 13 Jan 2008 03:47:05 -0500 Original-Received: (qmail invoked by alias); 13 Jan 2008 08:47:02 -0000 Original-Received: from p5486553E.dip.t-dialin.net (EHLO debian) [84.134.85.62] by mail.gmx.net (mp046) with SMTP; 13 Jan 2008 09:47:02 +0100 X-Authenticated: #28250155 X-Provags-ID: V01U2FsdGVkX18mSzlbHaQmA7QV9XTG1ECz23ehlp4AOx+dpNhchc d10R7RMchv1cK/ User-Agent: Gnus/5.110007 (No Gnus v0.7) Emacs/22.1.50 (gnu/linux) X-Y-GMX-Trusted: 0 X-detected-kernel: by monty-python.gnu.org: Linux 2.6, seldom 2.4 (older, 4) X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:86836 Archived-At: Inspired by the latest change that added the --bzip2 option to make-dist, I did the same for --lzma and ran a short benchmark to compare the results with the various compressors. Here is a summary of the results for `make-dist --snapshot' in the Emacs trunk on my machine¹: Option creation time (s) tarball size (B) unpacking time (s) ------- ----------------- --------------- ------------------ (none) 30.45 39,821,789 3.49 --bzip2 84.28 31,947,657 26.34 --lzma 338.23 26,797,729 7.71 It seems that the lzma format would be a very good candidate for distribution tarballs, if only it were more widespread; information and downloads are available at http://www.7-zip.org/sdk.html. Diff and Changelog entry: --8<---------------cut here---------------start------------->8--- --- make-dist 5 Jan 2008 13:26:33 -0000 1.239 +++ make-dist 13 Jan 2008 08:35:11 -0000 @@ -86,6 +86,11 @@ default_gzip="bzip2" ;; + ## Same with lzma. + "--lzma") + default_gzip="lzma" + ;; + "--snapshot") clean_up=yes make_tar=yes @@ -99,6 +104,7 @@ echo " --bzip2 use bzip2 instead of gzip" echo " --clean-up delete staging directories when done" echo " --compress use compress instead of gzip" + echo " --lzma use lzma instead of gzip" echo " --newer=TIME don't include files older than TIME" echo " --no-check don't check for bad file names etc." echo " --no-update don't recompile or do analogous things" @@ -750,6 +756,7 @@ case "${default_gzip}" in bzip2) gzip_extension=.bz2 ;; compress* ) gzip_extension=.Z ;; + lzma) gzip_extension=.lzma ;; * ) gzip_extension=.gz ;; esac echo "Creating tar file" --8<---------------cut here---------------end--------------->8--- 2008-01-13 Sven Joachim * make-dist: Add --lzma. ¹ Athlon XP 2400+ (2Ghz), 1 GB RAM