File: cxref.postinst

package info (click to toggle)
cxref 1.6e-9
  • links: PTS
  • area: main
  • in suites: forky, sid, trixie
  • size: 3,332 kB
  • sloc: ansic: 16,598; yacc: 2,091; sh: 945; lex: 470; perl: 452; makefile: 439; lisp: 256; cpp: 188; python: 80
file content (30 lines) | stat: -rw-r--r-- 661 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
#!/bin/sh

set -e
. /usr/share/debconf/confmodule

if [ "$1" = "configure" ] ; then

    CF=/tmp/$(mktemp cxref.XXXXXXXXXX)

    db_get cxref/cxref-cpp-autoconf
    AUTOCONF="$RET"

    echo "AUTOCONF=$AUTOCONF" >> $CF

    ucf --debconf-ok $CF /etc/cxref/config
    ucfr cxref /etc/cxref/config

    chmod 644 /etc/cxref/config

    if [ "$AUTOCONF" = "true" ] ; then
	CXREF_DEFINE_DIR=$(dirname $CF) cxref-cpp-configure
	ucf --debconf-ok $(dirname $CF)/cxref-cpp.defines /etc/cxref/cxref-cpp.defines
    else
	ucf --debconf-ok /usr/share/cxref/cxref-cpp.defines /etc/cxref/cxref-cpp.defines
    fi
    ucfr cxref /etc/cxref/cxref-cpp.defines

fi

#DEBHELPER#