File: update-auctex-elisp.in

package info (click to toggle)
auctex 9.9p-13
  • links: PTS
  • area: main
  • in suites: potato
  • size: 1,328 kB
  • ctags: 761
  • sloc: lisp: 11,769; makefile: 197
file content (35 lines) | stat: -rw-r--r-- 964 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
#include "variables"
#!/bin/bash -e
#
# Update AucTeX auto-loads.
# Installed by the Debian <:=$PACKAGE:> package.
# $Id: update-auctex-elisp.in,v 1.5 2000/01/20 14:33:49 salve Exp $
#
<:=@COPYRIGHT:>//

set -o posix

<:# only GNU/Emacs, 'cause XEmacs comes with its own AUC TeX.:>//
for FLAVOR in emacs19 emacs20; do
    if [ -x /usr/bin/$FLAVOR ]; then
	$FLAVOR --no-site-file --no-init-file --batch \
	        --load=/usr/share/emacs/site-lisp/tex-site.el \
                --funcall=TeX-auto-generate-global
    fi
done

<:# Mule2 add hoc rule.:>//
if [ -x /usr/bin/mule2 ]; then
    mule2 --no-site-file --no-init-file --batch \
	  --load=/usr/share/emacs/site-lisp/tex-site.el \
          --eval '(set-file-coding-system-for-read *iso-2022-int-1*)' \
          --funcall=TeX-auto-generate-global
fi

<:# better to remove .el files now that .elc have done:>//
rm -f $(find <:=$var:> -type f -name \*.el)
<:
# Local Variables:
# mode: shell-script
# End:
:>//