File: gcj-BV-jre-headless.postinst

package info (click to toggle)
gcc-4.8 4.8.4-1
  • links: PTS, VCS
  • area: main
  • in suites: jessie, jessie-kfreebsd
  • size: 587,180 kB
  • ctags: 425
  • sloc: makefile: 65,711; sh: 1,248; perl: 165; awk: 23; cpp: 14
file content (48 lines) | stat: -rw-r--r-- 1,517 bytes parent folder | download | duplicates (27)
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
48
#! /bin/sh -e

prio=@java_priority@

update-alternatives --quiet \
    --install /usr/bin/java java /usr/bin/gij-@BV@ $prio \
    @GFDL@--slave /usr/share/man/man1/java.1.gz java.1.gz /usr/share/man/man1/gij-@BV@.1.gz

update-alternatives --quiet \
    --install /usr/bin/rmiregistry rmiregistry /usr/bin/grmiregistry-@BV@ $prio \
    --slave /usr/share/man/man1/rmiregistry.1.gz rmiregistry.1.gz /usr/share/man/man1/grmiregistry-@BV@.1.gz

update-alternatives --quiet \
    --install /usr/bin/keytool keytool /usr/bin/gkeytool-@BV@ $prio \
    --slave /usr/share/man/man1/keytool.1.gz keytool.1.gz /usr/share/man/man1/gkeytool-@BV@.1.gz

update-alternatives --quiet \
    --install /usr/bin/orbd orbd /usr/bin/gorbd-@BV@ $prio \
    --slave /usr/share/man/man1/orbd.1.gz orbd.1.gz /usr/share/man/man1/gorbd-@BV@.1.gz

update-alternatives --quiet \
    --install /usr/bin/rmid rmid /usr/bin/grmid-@BV@ $prio \
    --slave /usr/share/man/man1/rmid.1.gz rmid.1.gz /usr/share/man/man1/grmid-@BV@.1.gz

case "$1" in
configure)
    if [ ! -f /var/lib/gcj-@BV@/classmap.db ]; then
	uname=$(uname -m)
	mkdir -p /var/lib/gcj-@BV@
	if gcj-dbtool-@BV@ -n /var/lib/gcj-@BV@/classmap.db; then
	    case "$uname" in arm*|m68k|parisc*)
	        echo >&2 "gcj-dbtool succeeded unexpectedly"
	    esac
	else
	    case "$uname" in
	    arm*|m68k|parisc*)
	        echo >&2 "ERROR: gcj-dbtool did fail; known problem on $uname";;
	    *)
		exit 2
	    esac
	    touch /var/lib/gcj-@BV@/classmap.db
	fi
    fi
esac

#DEBHELPER#

exit 0