windows-file-versioning-20030619
[openafs.git] / src / packaging / HP-UX / scripts / openafs-eng-man.unconfigure
1 #!/bin/sh
2
3 echo "NOTE:    Executing unconfigure script."
4 #######
5 #
6 #  (c) Copyright
7 #
8 ########
9
10     set -a
11     UTILS="/usr/lbin/sw/control_utils"
12     if [[ ! -f ${UTILS} ]]
13     then
14         echo "ERROR:   Cannot find ${UTILS}"
15         exit 1
16     fi
17     . ${UTILS}
18 ################################################
19 # Remove the global MANPATH to exclude OPENAFS software
20 ROOT=/opt/afs/
21
22 mod_pathfile -d MP ${ROOT}man
23
24 if [[ $? = 2 ]]
25 then
26     echo "         /etc/MANPATH does not contains the OPENAFS component."
27 else
28     echo "         ${ROOT}/man removed from /etc/MANPATH."
29 fi
30
31 exit 0