aboutsummaryrefslogtreecommitdiffstats
path: root/french/eficas_doc/pkg-install
blob: edf86ef43b5a0fb9a218d2d98d1228af28a0ea45 (plain) (blame)
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
#!/bin/sh
#
PATH=/bin:/usr/bin:/sbin:/usr/sbin
PREFIX=${PKG_PREFIX:-/usr/local}
CATADIR=${PREFIX}/apps/eficas/Aster/Cata

if [ $# -ne 2 ]; then
    echo "usage: $0 distname { POST-INSTALL | PRE-DEINSTALL }" >&2
    exit 1
fi

case $2 in
    PRE-INSTALL)
    if [ -f ${CATADIR}/cataSTA8c_clefs_docu ]; then
        mv ${CATADIR}/cataSTA8c_clefs_docu ${CATADIR}/cataSTA8c_clefs_docu.orig
    fi
    if [ -f ${CATADIR}/cataSTA9c_clefs_docu ]; then
        mv ${CATADIR}/cataSTA9c_clefs_docu ${CATADIR}/cataSTA9c_clefs_docu.orig
    fi
    ;;
    POST-INSTALL)
        ;;
    *)
    echo "usage: $0 distname { POST-INSTALL | PRE-INSTALL }" >&2
    exit 1
    ;;
esac

exit 0