5 # Copyright (C) 1995 Free Software Foundation, Inc.
6 # François Pinard <pinard@iro.umontreal.ca>, 1995.
8 # This program is free software; you can redistribute it and/or modify
9 # it under the terms of the GNU General Public License as published by
10 # the Free Software Foundation; either version 2, or (at your option)
13 # This program is distributed in the hope that it will be useful,
14 # but WITHOUT ANY WARRANTY; without even the implied warranty of
15 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16 # GNU General Public License for more details.
18 # You should have received a copy of the GNU General Public License
19 # along with this program; if not, write to the Free Software
20 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
23 TOP_SRCDIR=@top_srcdir_absolute@/libedsio
25 SCRIPT=$TMPDIR/script.$$
27 trap "rm -f $SCRIPT" 0
30 echo 1>&2 "usage: $0 INPUT"
33 if test -z "$EMACS" || test "$EMACS" = "t"; then
34 # Value of "t" means we are running in a shell under Emacs.
35 # Just assume Emacs is called "emacs".
40 INPUT_PREF=`echo $INPUT | sed 's/\.[^\.]*$//'`
42 echo "(load-file \"$TOP_SRCDIR/edsio.el\") " \
43 "(generate-ser \"$INPUT\" \"$INPUT_PREF\")" > $SCRIPT
45 $EMACS --batch -l $SCRIPT