From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Eric Lilja Newsgroups: gmane.emacs.devel Subject: Re: Moving homebrewn binaries and question about building documentation Date: Sat, 21 Jul 2007 16:56:00 +0200 Message-ID: References: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Trace: sea.gmane.org 1185029786 13702 80.91.229.12 (21 Jul 2007 14:56:26 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Sat, 21 Jul 2007 14:56:26 +0000 (UTC) To: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sat Jul 21 16:56:24 2007 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 1ICGNc-000835-D2 for ged-emacs-devel@m.gmane.org; Sat, 21 Jul 2007 16:56:24 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1ICGNc-0005CF-0z for ged-emacs-devel@m.gmane.org; Sat, 21 Jul 2007 10:56:24 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1ICGNZ-0005CA-0s for emacs-devel@gnu.org; Sat, 21 Jul 2007 10:56:21 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1ICGNW-0005Ae-HL for emacs-devel@gnu.org; Sat, 21 Jul 2007 10:56:19 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1ICGNW-0005Ab-Ex for emacs-devel@gnu.org; Sat, 21 Jul 2007 10:56:18 -0400 Original-Received: from main.gmane.org ([80.91.229.2] helo=ciao.gmane.org) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1ICGNV-000339-OS for emacs-devel@gnu.org; Sat, 21 Jul 2007 10:56:18 -0400 Original-Received: from list by ciao.gmane.org with local (Exim 4.43) id 1ICGNP-0005j6-EA for emacs-devel@gnu.org; Sat, 21 Jul 2007 16:56:11 +0200 Original-Received: from cust.fiber-lan.vnet.lk.85.194.49.108.stunet.se ([85.194.49.108]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sat, 21 Jul 2007 16:56:11 +0200 Original-Received: from mindcooler by cust.fiber-lan.vnet.lk.85.194.49.108.stunet.se with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sat, 21 Jul 2007 16:56:11 +0200 X-Injected-Via-Gmane: http://gmane.org/ Original-Lines: 84 Original-X-Complaints-To: usenet@sea.gmane.org X-Gmane-NNTP-Posting-Host: cust.fiber-lan.vnet.lk.85.194.49.108.stunet.se User-Agent: Thunderbird 2.0.0.5 (Windows/20070716) In-Reply-To: X-detected-kernel: 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:75233 Archived-At: Eric Lilja wrote: > Eli Zaretskii wrote: >>> From: Eric Lilja >>> Date: Sat, 21 Jul 2007 14:23:54 +0200 >>> >>> #!/bin/bash >>> export CVS_RSH="ssh" >>> touch ~/.cvspass >>> cvs -z3 -d:pserver:anonymous@cvs.savannah.gnu.org:/sources/emacs co >>> -r EMACS_22_BASE emacs >>> rm ~/.cvspass >>> cd emacs/nt/ >>> ./configure.bat --with-gcc --no-cygwin --no-debug >>> mingw32-make bootstrap --jobs=2 XMFLAGS="--jobs=2" >>> mingw32-make install >>> mingw32-make info >>> >>> The last command, mingw32-make info, was not actually in the script >>> but something I performed as an afterthought. I've had problems >>> before with my homebrewn binaries not being able to find its >>> documentation, and maybe this was the missing step? >> >> You do need the last command on Windows, since nt/makefile will not >> build the documentation by default (unlike on Unix and GNU systems). >> This is because Windows users are not required to have Texinfo >> installed, and we don't want to ail the build for those who don't. >> >>> My second question is: If I want to keep only the binaries and the >>> files those binaries need, which directories should I get rid of now >>> that the build is finished (and was a success)? >> >> I'd suggest to use the "make install" target (in nt/makefile). If you >> give it a target directory, like this: >> >> make install INSTALL_DIR=/path/to/wherever/you/want >> >> then it will copy only the files necessary for running Emacs you built >> to the named directory. You can then remove the source tree if you >> don't want to keep it, and run Emacs from the directory where you told >> "make install" to put it. >> >> The advantage of "make install" as compared to removing unneeded >> directories is that some files inside the directories you do need are >> not copied (e.g., the CVS/ subdirectories, the ChangeLog files, etc.). >> This might result in more disk space savings. > > Ah, thanks for the useful reply, Eli! I've changed my script to: > #!/bin/bash > export CVS_RSH="ssh" > touch ~/.cvspass > cvs -z3 -d:pserver:anonymous@cvs.savannah.gnu.org:/sources/emacs co -r > EMACS_22_BASE emacs > rm ~/.cvspass > cd emacs/nt/ > ./configure.bat --with-gcc --no-cygwin --no-debug > mingw32-make bootstrap --jobs=2 XMFLAGS="--jobs=2" > mingw32-make info > mingw32-make install INSTALL_DIR=c:/emacs/ > > and I'm going to test it now (builds are started in > c:/cvsemacs/emacs/nt) and no more manual copy to c:/emacs if this works > or wondering what to copy. > > I actually wrote an application that cleaned the emacs tree from the > CVS-dirs but then that one is not needed anymore now that you've armed > me with this new information! Thanks! :) I will post back if I encounter > any problems. > > - Eric Ok, I just ran the script in my previous reply. There were a few "problems". As you can see I had a trailing / in my INSTALL_DIR so install tries to copy like this (just pasting one example): cp -f oo-spd/i386/etags.exe c:/emacs//bin Notice the double forward slash. It didn't seem to affect copying, though, and I will simply remove the trailing slash from INSTALL_DIR in my script (I thought it would check for a trailing slash and add one if there wasn't one but it seems it adds one regardless). Also, I still have many CVS directories in the subdirectories. I also noticed two empty top-level directories named lock and data, respectively. These are not present in the official emacs 22.1 windows binary package. Comments? - Eric