~ubuntu-branches/ubuntu/quantal/desktop-file-utils/quantal

« back to all changes in this revision

Viewing changes to elisp-comp

  • Committer: Bazaar Package Importer
  • Author(s): Robert Ancell
  • Date: 2010-03-30 15:25:44 UTC
  • mfrom: (1.1.6 upstream)
  • Revision ID: james.westby@ubuntu.com-20100330152544-p8n6eg4zvucfz9rb
Tags: 0.16-0ubuntu1
* New upstream release:
 - do not unlink the destination file if it's the same as the source file in
   desktop-file-install
 - check that a main category is included in the Categories
 - check that categories required by another one are present
 - do not always show warnings about KDE specific uses
 - check that the Comment does not look like the Name and the GenericName
 - display error about multiple keys with the same name earlier
 - improve MIME type check to make sure that the MIME types are valid
 - add LXDE in the list of registered OnlyShowIn values
 - add "warning" to error strings to make them easily greppable
 - handle AutostartCondition key, as proposed for the autostart specification
   and used in GNOME
 - accept empty Categories key as valid
 - make new errors non-fatal to give some time to maintainers to fix their
   .desktop file after a release of desktop-file-utils
 - plug leak
 - code cleanups
 - improve MIME type check to make sure that the MIME types are valid
 - improve error messages (Erik Hovland, Vincent)
 - fix format string vulnerability warning
 - use AM_SILENT_RULES
 - improve build system
* debian/patches/01-add-lxde.patch:
  - Applied upstream
* debian/control:
  - Add Vcs-Bzr link
  - Use Standards-Version 3.8.4
* debian/watch:
  - Releases now in bzip2 format

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
#!/bin/sh
2
 
# Copyright (C) 1995, 2000, 2003  Free Software Foundation, Inc.
 
2
# Copyright (C) 1995, 2000, 2003, 2004, 2005, 2009 Free Software
 
3
# Foundation, Inc.
 
4
 
 
5
scriptversion=2009-04-28.21; # UTC
 
6
 
3
7
# Franc,ois Pinard <pinard@iro.umontreal.ca>, 1995.
4
8
#
5
9
# This program is free software; you can redistribute it and/or modify
13
17
# GNU General Public License for more details.
14
18
#
15
19
# 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.
 
20
# along with this program.  If not, see <http://www.gnu.org/licenses/>.
18
21
 
19
22
# As a special exception to the GNU General Public License, if you
20
23
# distribute this file as part of a program that contains a
21
24
# configuration script generated by Autoconf, you may include it under
22
25
# the same distribution terms that you use for the rest of that program.
23
26
 
24
 
# This script byte-compiles all `.el' files which are part of its
25
 
# arguments, using GNU Emacs, and put the resulting `.elc' files into
26
 
# the current directory, so disregarding the original directories used
27
 
# in `.el' arguments.
28
 
#
29
 
# This script manages in such a way that all Emacs LISP files to
30
 
# be compiled are made visible between themselves, in the event
31
 
# they require or load-library one another.
32
 
 
33
 
if test $# = 0; then
34
 
  echo 1>&2 "No files given to $0"
35
 
  exit 1
36
 
fi
 
27
# This file is maintained in Automake, please report
 
28
# bugs to <bug-automake@gnu.org> or send patches to
 
29
# <automake-patches@gnu.org>.
 
30
 
 
31
case $1 in
 
32
  '')
 
33
     echo "$0: No files.  Try \`$0 --help' for more information." 1>&2
 
34
     exit 1;
 
35
     ;;
 
36
  -h | --h*)
 
37
    cat <<\EOF
 
38
Usage: elisp-comp [--help] [--version] FILES...
 
39
 
 
40
This script byte-compiles all `.el' files listed as FILES using GNU
 
41
Emacs, and put the resulting `.elc' files into the current directory,
 
42
so disregarding the original directories used in `.el' arguments.
 
43
 
 
44
This script manages in such a way that all Emacs LISP files to
 
45
be compiled are made visible between themselves, in the event
 
46
they require or load-library one another.
 
47
 
 
48
Report bugs to <bug-automake@gnu.org>.
 
49
EOF
 
50
    exit $?
 
51
    ;;
 
52
  -v | --v*)
 
53
    echo "elisp-comp $scriptversion"
 
54
    exit $?
 
55
    ;;
 
56
esac
37
57
 
38
58
if test -z "$EMACS" || test "$EMACS" = "t"; then
39
59
  # Value of "t" means we are running in a shell under Emacs.
44
64
tempdir=elc.$$
45
65
 
46
66
# Cleanup the temporary directory on exit.
47
 
trap 'status=$?; rm -rf "$tempdir" && exit $status' 0
 
67
trap 'ret=$?; rm -rf "$tempdir" && exit $ret' 0
48
68
trap '(exit $?); exit' 1 2 13 15
49
69
 
50
70
mkdir $tempdir
57
77
  mv *.elc ..
58
78
) || exit $?
59
79
 
60
 
(exit 0); exit
 
80
(exit 0); exit 0
 
81
 
 
82
# Local Variables:
 
83
# mode: shell-script
 
84
# sh-indentation: 2
 
85
# eval: (add-hook 'write-file-hooks 'time-stamp)
 
86
# time-stamp-start: "scriptversion="
 
87
# time-stamp-format: "%:y-%02m-%02d.%02H"
 
88
# time-stamp-time-zone: "UTC"
 
89
# time-stamp-end: "; # UTC"
 
90
# End: