emacs-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Moving homebrewn binaries and question about building documentation


From: Eric Lilja
Subject: Re: Moving homebrewn binaries and question about building documentation
Date: Sat, 21 Jul 2007 19:37:29 +0200
User-agent: Thunderbird 2.0.0.5 (Windows/20070716)

Eli Zaretskii wrote:
From: Eric Lilja <address@hidden>
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:address@hidden:/sources/emacs co emacs
cvs -z3 -d:pserver:address@hidden:/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





reply via email to

[Prev in Thread] Current Thread [Next in Thread]