diff options
Diffstat (limited to 'xdelta1/libedsio/edsio-comp.in')
-rwxr-xr-x | xdelta1/libedsio/edsio-comp.in | 46 |
1 files changed, 46 insertions, 0 deletions
diff --git a/xdelta1/libedsio/edsio-comp.in b/xdelta1/libedsio/edsio-comp.in new file mode 100755 index 0000000..51b55d7 --- /dev/null +++ b/xdelta1/libedsio/edsio-comp.in | |||
@@ -0,0 +1,46 @@ | |||
1 | #!/bin/sh | ||
2 | |||
3 | # Derived from: | ||
4 | |||
5 | # Copyright (C) 1995 Free Software Foundation, Inc. | ||
6 | # François Pinard <pinard@iro.umontreal.ca>, 1995. | ||
7 | # | ||
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) | ||
11 | # any later version. | ||
12 | # | ||
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. | ||
17 | # | ||
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. | ||
21 | |||
22 | EMACS=@EMACS@ | ||
23 | TOP_SRCDIR=@top_srcdir_absolute@/libedsio | ||
24 | |||
25 | SCRIPT=$TMPDIR/script.$$ | ||
26 | |||
27 | trap "rm -f $SCRIPT" 0 | ||
28 | |||
29 | if test $# != 1; then | ||
30 | echo 1>&2 "usage: $0 INPUT" | ||
31 | exit 1 | ||
32 | else | ||
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". | ||
36 | EMACS=emacs | ||
37 | fi | ||
38 | |||
39 | INPUT=$1 | ||
40 | INPUT_PREF=`echo $INPUT | sed 's/\.[^\.]*$//'` | ||
41 | |||
42 | echo "(load-file \"$TOP_SRCDIR/edsio.el\") " \ | ||
43 | "(generate-ser \"$INPUT\" \"$INPUT_PREF\")" > $SCRIPT | ||
44 | |||
45 | $EMACS --batch -l $SCRIPT | ||
46 | fi | ||