~ubuntu-branches/ubuntu/trusty/gettext/trusty

« back to all changes in this revision

Viewing changes to misc/elisp-comp

  • Committer: Bazaar Package Importer
  • Author(s): Santiago Vila
  • Date: 2002-04-10 13:17:42 UTC
  • Revision ID: james.westby@ubuntu.com-20020410131742-npf89tsaygdolprj
Tags: upstream-0.10.40
Import upstream version 0.10.40

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#!/bin/sh
 
2
# Copyright (C) 1995, 1997 Free Software Foundation, Inc.
 
3
# Fran�ois Pinard <pinard@iro.umontreal.ca>, 1995.
 
4
#
 
5
# This program is free software; you can redistribute it and/or modify
 
6
# it under the terms of the GNU General Public License as published by
 
7
# the Free Software Foundation; either version 2, or (at your option)
 
8
# any later version.
 
9
#
 
10
# This program is distributed in the hope that it will be useful,
 
11
# but WITHOUT ANY WARRANTY; without even the implied warranty of
 
12
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 
13
# GNU General Public License for more details.
 
14
#
 
15
# You should have received a copy of the GNU General Public License
 
16
# along with this program; if not, write to the Free Software
 
17
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
 
18
 
 
19
# This script byte-compiles all `.el' files which are part of its
 
20
# arguments, using GNU Emacs, and put the resulting `.elc' files into
 
21
# the current directory, so disregarding the original directories used
 
22
# in `.el' arguments.
 
23
#
 
24
# This script manages in such a way that all Emacs LISP files to
 
25
# be compiled are made visible between themselves, in the event
 
26
# they require or load-library one another.
 
27
 
 
28
if test $# = 0; then
 
29
  echo 1>&2 "No files given to $0"
 
30
else
 
31
  tempdir=elc.$$
 
32
  mkdir $tempdir
 
33
  cp $* $tempdir
 
34
  cd $tempdir
 
35
 
 
36
  echo "(setq load-path (cons nil load-path))" > script
 
37
  ${EMACS-emacs} -batch -l script -f batch-byte-compile *.el
 
38
  mv *.elc ..
 
39
 
 
40
  cd ..
 
41
  rm -fr $tempdir
 
42
fi