This file is indexed.

postinst is in code-aster-gui 1.8.4-5.

This file is a maintainer script. It is executed when installing (*inst) or removing (*rm) the package.

The actual contents of the file can be viewed below.

 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
43
44
45
46
47
#!/bin/sh

set -ex

# Source debconf library.
. /usr/share/debconf/confmodule

db_version 2.0

get_value() {
    db_get $1
    code="$?"
    if [ "$code" -eq "0" ]; then
	:
    else
	echo "Error getting debconf answer $1: debconf code=$code" >&2
	exit $code
    fi
}

if [ "$1" = "configure" ] ; then
	db_get astk/servername || true
	servername=${RET}
	perl -pi -le "s|serveur : .*|serveur : $servername|" /etc/codeaster/astkrc/config_serveurs
	
	db_get astk/domainname || true
	domainname=${RET}
	perl -pi -le "s|nom_domaine : .*|nom_domaine : $domainname|" /etc/codeaster/astkrc/prefs
	perl -pi -le "s|nom_complet : .*|nom_complet : $servername\.$domainname|" /etc/codeaster/astkrc/config_serveurs
	
	db_get astk/EDITOR || true
	editor=${RET}
	perl -pi -le "s|editeur : .*|editeur : $editor|" /etc/codeaster/astkrc/prefs
	perl -pi -le "s|editeur : .*|editeur : $editor|" /etc/codeaster/astkrc/config_serveurs
	
	db_get astk/TERMINAL || true
	terminal=${RET}
	perl -pi -le "s|xterm : .*|xterm : $terminal|" /etc/codeaster/astkrc/prefs
	perl -pi -le "s|xterm : .*|xterm : $terminal|" /etc/codeaster/astkrc/config_serveurs
	
fi

# Automatically added by dh_installmenu
if [ "$1" = "configure" ] && [ -x "`which update-menus 2>/dev/null`" ]; then
	update-menus
fi
# End automatically added section