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 19:37:29 +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 1185039467 6528 80.91.229.12 (21 Jul 2007 17:37:47 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Sat, 21 Jul 2007 17:37:47 +0000 (UTC) To: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sat Jul 21 19:37:46 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 1ICItl-00062P-OI for ged-emacs-devel@m.gmane.org; Sat, 21 Jul 2007 19:37:45 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1ICItl-00049O-7E for ged-emacs-devel@m.gmane.org; Sat, 21 Jul 2007 13:37:45 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1ICIti-00048f-7Y for emacs-devel@gnu.org; Sat, 21 Jul 2007 13:37:42 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1ICItg-00048T-UV for emacs-devel@gnu.org; Sat, 21 Jul 2007 13:37:41 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1ICItg-00048Q-Ru for emacs-devel@gnu.org; Sat, 21 Jul 2007 13:37:40 -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 1ICItg-0000tR-D2 for emacs-devel@gnu.org; Sat, 21 Jul 2007 13:37:40 -0400 Original-Received: from list by ciao.gmane.org with local (Exim 4.43) id 1ICItb-0002DY-K4 for emacs-devel@gnu.org; Sat, 21 Jul 2007 19:37:35 +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 19:37:35 +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 19:37:35 +0200 X-Injected-Via-Gmane: http://gmane.org/ Original-Lines: 64 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:75248 Archived-At: Eli Zaretskii wrote: >> From: Eric Lilja >> Date: Sat, 21 Jul 2007 18:25:30 +0200 >> >> if you know of a clever way I can remove these directories from >> inside my script? > > Just copy these lines from Makefile.in: > > for subdir in `find $${dest} -type d ! -name RCS ! -name CVS -print` ; do \ > chmod a+rx $${subdir} ; \ > rm -rf $${subdir}/RCS ; \ > rm -rf $${subdir}/CVS ; \ > rm -f $${subdir}/.cvsignore ; \ > rm -f $${subdir}/.arch-inventory ; \ > rm -f $${subdir}/\#* ; \ > rm -f $${subdir}/.\#* ; \ > rm -f $${subdir}/*~ ; \ > rm -f $${subdir}/*.orig ; \ > rm -f $${subdir}/[mM]akefile* ; \ > rm -f $${subdir}/ChangeLog* ; \ > rm -f $${subdir}/dired.todo ; \ > done) ; \ > > where $$(dest) is the value of INSTALL_DIR you give to "make install". > > (You will have to convert $$ into $ in this snippet, for it to work > from a script, as opposed to a Makefile.) > >> You're a great asset, Eli! Thanks! > > You're welcome. Thanks again, Eli. I decided to settle for just removing the CVS-subdir, for now. My script now looks like this: #!/bin/bash export CVS_RSH="ssh" touch ~/.cvspass #cvs -z3 -d:pserver:anonymous@cvs.savannah.gnu.org:/sources/emacs co emacs 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 # Don't have a trailing / in INSTALL_DIR because one will be added regardless. # mingw32-make install will remove some CVS-directories on Windows, not all. # Note: No spaces surrounding the = ! INSTDIR=c:/emacs mingw32-make install INSTALL_DIR=$INSTDIR # On Windows, some CVS-directories are left in the installation dir. # The following code snippet removes them. for subdir in `find $INSTDIR -type d ! -name RCS ! -name CVS -print` ; do \ rm -rf $subdir/CVS; done ; It seems to do what I want, the CVS directories seem to be gone. Looks OK? - Eric