aboutsummaryrefslogtreecommitdiffstats
path: root/lang/ezm3/scripts/check_conflicts
blob: 0610f783f80e74e9fb315e910b719f3614d6e922 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
#! /bin/sh
# Check for shared libraries left over from another Modula-3 port.

libdir=${PREFIX}/lib/m3/${TARGET}

case "`echo ${libdir}/lib*.so*`" in
"${libdir}/lib*.so*")
    exit 0;;
*)
    echo ""
    echo "You have some Modula-3 shared libraries in ${libdir}"
    echo "which conflict with ezm3.  Please use pkg_delete to remove other"
    echo "versions of Modula-3, such as \"modula-3*\" and \"pm3-*\"."
    exit 1;;
esac