From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Angelo Graziosi Newsgroups: gmane.emacs.devel Subject: Re: Move to git is imminent - awaiting Stefan's approval Date: Thu, 09 Jan 2014 13:18:17 +0100 Message-ID: <52CE9389.4000009@alice.it> References: <52CB2AB0.4080505@alice.it> <877gachfza.fsf@igel.home> <52CC032D.7010405@alice.it> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1389269922 4723 80.91.229.3 (9 Jan 2014 12:18:42 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 9 Jan 2014 12:18:42 +0000 (UTC) Cc: emacs To: Andreas Schwab Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Thu Jan 09 13:18:49 2014 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1W1EZP-00031f-9B for ged-emacs-devel@m.gmane.org; Thu, 09 Jan 2014 13:18:43 +0100 Original-Received: from localhost ([::1]:51534 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1W1EZO-0002Do-RX for ged-emacs-devel@m.gmane.org; Thu, 09 Jan 2014 07:18:42 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:41035) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1W1EZI-0002By-7z for emacs-devel@gnu.org; Thu, 09 Jan 2014 07:18:41 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1W1EZD-00084I-4h for emacs-devel@gnu.org; Thu, 09 Jan 2014 07:18:36 -0500 Original-Received: from smtp201.alice.it ([82.57.200.97]:21088) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1W1EZC-00084C-Pj for emacs-devel@gnu.org; Thu, 09 Jan 2014 07:18:31 -0500 Original-Received: from [192.168.1.100] (95.238.189.19) by smtp201.alice.it (8.6.060.28) (authenticated as angelo.graziosi@alice.it) id 529A561B06E7547E; Thu, 9 Jan 2014 13:18:27 +0100 User-Agent: Mozilla/5.0 (Windows NT 5.1; rv:24.0) Gecko/20100101 Thunderbird/24.2.0 In-Reply-To: X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 82.57.200.97 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:167890 Archived-At: Il 07/01/2014 15.24, Andreas Schwab ha scritto: > Angelo Graziosi writes: > >> I see that I can download the trunk source with >> >> $ wget >> http://git.savannah.gnu.org/cgit/emacs.git/snapshot/emacs-trunk.tar.gz >> >> but how I can identify it? > > Normally git get-tar-commit-id should do it, but the archive wasn't > produced by git archive, or it was created from a tree ID instead of a > commit ID. That looks like a bug in cgit. I have downloaded 1) http://git.savannah.gnu.org/cgit/emacs.git/snapshot/emacs-e42fcf1482e2c9e9d93f459985d13dbbabc61956.tar.gz 2) http://git.savannah.gnu.org/cgit/emacs.git/snapshot/emacs-trunk.tar.gz which correspond to the same trunk but I cannot identify the trunk: the command "git get-tar-commit-id" hangs. If I have understood, with GIT the trunk is identified with the SHA1 string like "e42fcf1482e2c9e9d93f459985d13dbbabc61956", so that in the first case I know the trunk "revision". Anyway, I would prefer that that string is stored inside the tree given by those tar-balls. For example in a text file, LAST-COMMIT-ID, so that one can know it with $ cat emacs-e42fcf1482e2c9e9d93f459985d13dbbabc61956/LAST-COMMIT-ID or $ cat emacs-trunk/LAST-COMMIT-ID In this way, I can create a build script with this skeleton: ... wget http://git.savannah.gnu.org/cgit/emacs.git/snapshot/emacs-trunk.tar.gz tar -xf emacs-trunk.tar.gz rev=`cat emacs-trunk/LAST-COMMIT-ID` autogen.sh configure... make bootstrap make install DESTDIR=... tar -cf emacs-$rev-bin.tar.xz $INSTDIR Ciao, Angelo.