unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: Han Boetes <han@mijncomputer.nl>
Subject: Re: Making a script to update and compile from CVS
Date: Fri, 14 Jan 2005 20:38:39 +0059	[thread overview]
Message-ID: <20050114193901.GK14127@boetes.org> (raw)
In-Reply-To: <001801c4f9b8$0cfaacb0$0200a8c0@sedrcw11488>

Hi,

I checked out emacs in ~/nfs/Emacs/emacs--multi-tty And in
~/nfs/Emacs/openbsd and ~/nfs/Emacs/linux I run this ``script,''
which creates simple tarball packages, which you can install with:

tar xzf path/to/emacs\#21.3.50-$timestamp.pkg.tar.gz -C /

and uninstall with

cd /
tar tzf path/to/emacs\#21.3.50-$timestamp.pkg.tar.gz|xargs rm

Or get this simple package manager:
  http://www.fukt.bth.se/~per/pkgutils/

Or change the ``install_target'' to whatever you like:



MAKE=gmake
SRCDIR=../emacs--multi-tty
opties='--without-sound'
CFLAGS='-Os -g -pipe' # -DGC_MCHECK=1
PKG=$PWD/../fake

beep()
{
    echo -en '\a'
}

install_target()
{
    if [ -e $PKG ]; then
        echo sudo rm -rf $PKG
        sudo rm -rf $PKG
    fi
    $MAKE install DESTDIR=$PKG #prefix=$PKG/usr/local

#     find \
#         $PKG/usr/local/share/emacs/21.3.50/{leim,lisp} \
#         $PKG/usr/local/share/emacs/site-lisp \
#         -name "*.el"|while read line; do
#         if [ -r ${line}c ]; then
#             rm $line
#         fi
#     done

    find \
        $PKG/usr/local -type d  -name '.arch-ids'|xargs rm -rf
    rm -rf $PKG/usr/local/var/ $PKG/usr/local/bin/emacs-*
    beep
    echo 'Are you there?'
    read nop
    echo sudo chown -R root:wheel $PKG
    sudo chown -R root:wheel $PKG
    cd $PKG
    timestamp="$(date '+%Y%m%d')"
    gtar czf "../emacs#21.3.50-$timestamp.pkg.tar.gz" usr
    echo sudo rm -rf $PKG
    sudo rm -rf $PKG
    cd ~/nfs/Emacs
    echo "sudo pkgadd -u emacs\#21.3.50-$timestamp.pkg.tar.gz"
}

con_figure()
{
    CFLAGS=$CFLAGS CC=$CC $SRCDIR/configure $opties '--prefix=$(DESTDIR)/usr/local'
}

case $1 in
    bootstrap)
        [ -r Makefile ] && make maintainer-clean
        con_figure
        $MAKE bootstrap
        install_target
        ;;
    uninstall)
        [ -r Makefile ] || con_figure
        beep
        sudo $MAKE uninstall
        sudo rm -rf /usr/local/libexec/emacs
        # sudo rm -rf /usr/local/share/emacs # niet doen!
        sudo rm -rf /usr/local/var/games/emacs
        ;;
    '')
        con_figure
        $MAKE $MAKEOPTS
        cd lisp
        $MAKE recompile EMACS=../src/emacs
        cd -
        $SRCDIR/admin/quick-install-emacs --prune-only .
        install_target
        ;;
    install)
	install_target
	;;
    *)
        echo 'what?'
        false
        ;;
esac




# Han

  parent reply	other threads:[~2005-01-14 19:39 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-01-13 21:36 Making a script to update and compile from CVS Lennart Borgman
2005-01-13 23:34 ` Miles Bader
2005-01-15  0:12   ` Richard Stallman
2005-01-13 23:38 ` Stefan Monnier
2005-01-14 10:26 ` Kai Großjohann
2005-01-14 19:39 ` Han Boetes [this message]
  -- strict thread matches above, loose matches on Subject: below --
2005-01-14 12:39 Robert J. Chassell
2005-01-14 18:58 ` Vinicius Jose Latorre
2005-01-14 21:40 ` Michael Albinus

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20050114193901.GK14127@boetes.org \
    --to=han@mijncomputer.nl \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).