File: config.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 (42 lines) | stat: -rw-r--r-- 1,090 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
36
37
38
39
40
41
42
#include "variables"
#!/bin/bash -e
#
# config configuration file for Debian <:=$PACKAGE:> package.
# $Id: config.in,v 1.5 2000/01/20 14:33:49 salve Exp $
#
<:=@COPYRIGHT:>//

set -o posix

source <:=$CONFMODULE:>
db_version 2.0

# It seems dpkg doesn't pass $1 to config, so this case is willingly fake.
# Maybe this is a documentation bug for debconf?
case "$1" in
    configure|reconfigure)
	if egrep "\brequire[[:space:]]+[^)]*'tex-site\b" <:=$SSEL:> &>/dev/null; then
	    db_set <:=$PACKAGE:>/default false || true
	    db_text low <:=$PACKAGE:>/alreadydefault || true
	else
	    db_input medium <:=$PACKAGE:>/default || true
	fi
	db_go || true
	LOGFILE=$(mktemp <:=$TMPMASK:>)
	db_subst <:=$PACKAGE:>/doauto LOGFILE $LOGFILE || true
	db_register <:=$PACKAGE:>/doauto <:=$PACKAGE:>/logfile || true
	db_set <:=$PACKAGE:>/logfile $LOGFILE || true
	db_input low <:=$PACKAGE:>/doauto || true
	db_go || true
    ;;
    unknown_and_impossible_armageddon|*)
	echo "${0##*/}: Called with unknown argument \`$1'." >&2
    ;;
esac

exit 0
<:
# Local Variables:
# mode: shell-script
# End:
:>//