Mercurial > hg > xemacs-beta
comparison configure.ac @ 4448:fd8a9a4d81d9
Support #!, to allow XEmacs to be called as a script interpreter.
ChangeLog addition:
2008-01-20 Aidan Kehoe <kehoea@parhasard.net>
* Makefile.in.in (SHEBANG_PROGNAME):
New variable; a symbol link to the XEmacs binary to tell it it
should read a script from stdin.
* configure.ac (XE_EXPAND_VARIABLE):
Set SHEBANG_PROGNAME.
* configure:
Regenerate.
src/ChangeLog addition:
2008-01-20 Aidan Kehoe <kehoea@parhasard.net>
* config.h.in: Add SHEBANG_PROGNAME.
* emacs.c (main_1):
If we've been called using SHEBANG_PROGNAME, rewrite our arguments
to add a --script argument.
Also, handle the --script argument by setting noninteractive and
vanilla.
* lread.c (Fload_internal):
If the first two characters of a file are #!, replace them with ;!
before they get to the Lisp reader.
lisp/ChangeLog addition:
2008-01-20 Aidan Kehoe <kehoea@parhasard.net>
* startup.el (command-line-do-script): New.
(command-switch-alist): Use command-line-do-script.
New argument, compatible with GNU; --script or -script says "treat
the following argument as a file to load in batch mode".
man/ChangeLog addition:
2008-01-20 Aidan Kehoe <kehoea@parhasard.net>
* xemacs/cmdargs.texi (Command Switches):
Describe --script, -script.
author | Aidan Kehoe <kehoea@parhasard.net> |
---|---|
date | Sun, 20 Jan 2008 19:53:54 +0100 |
parents | 01970033faa6 |
children | 13ce402e1736 |
comparison
equal
deleted
inserted
replaced
4408:8bbabcab2c42 | 4448:fd8a9a4d81d9 |
---|---|
1217 AC_DEFINE_UNQUOTED(INFODOCK_MAJOR_VERSION, $infodock_major_version) | 1217 AC_DEFINE_UNQUOTED(INFODOCK_MAJOR_VERSION, $infodock_major_version) |
1218 AC_DEFINE_UNQUOTED(INFODOCK_MINOR_VERSION, $infodock_minor_version) | 1218 AC_DEFINE_UNQUOTED(INFODOCK_MINOR_VERSION, $infodock_minor_version) |
1219 AC_DEFINE_UNQUOTED(INFODOCK_BUILD_VERSION, $infodock_build_version) | 1219 AC_DEFINE_UNQUOTED(INFODOCK_BUILD_VERSION, $infodock_build_version) |
1220 version=${infodock_major_version}.${infodock_minor_version}.${infodock_build_version} | 1220 version=${infodock_major_version}.${infodock_minor_version}.${infodock_build_version} |
1221 PROGNAME=infodock | 1221 PROGNAME=infodock |
1222 SHEBANG_PROGNAME=infodock-script | |
1222 CPPFLAGS="$CPPFLAGS -DINFODOCK" | 1223 CPPFLAGS="$CPPFLAGS -DINFODOCK" |
1223 else | 1224 else |
1224 PROGNAME=xemacs | 1225 PROGNAME=xemacs |
1226 SHEBANG_PROGNAME=xemacs-script | |
1225 fi | 1227 fi |
1226 | 1228 |
1227 AC_DEFINE_UNQUOTED(EMACS_PROGNAME, "$PROGNAME") | 1229 AC_DEFINE_UNQUOTED(EMACS_PROGNAME, "$PROGNAME") |
1230 | |
1231 AC_DEFINE_UNQUOTED(SHEBANG_PROGNAME, "${PROGNAME}-script") | |
1228 | 1232 |
1229 dnl ---------------------------------- | 1233 dnl ---------------------------------- |
1230 dnl Error checking and debugging flags | 1234 dnl Error checking and debugging flags |
1231 dnl ---------------------------------- | 1235 dnl ---------------------------------- |
1232 dnl Error checking default to "yes" in beta versions, to "no" in releases. | 1236 dnl Error checking default to "yes" in beta versions, to "no" in releases. |