File: UNINSTALL

package info (click to toggle)
colplot 5.2.0-5
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 1,668 kB
  • sloc: perl: 3,244; sh: 233; makefile: 8
file content (54 lines) | stat: -rwxr-xr-x 1,286 bytes parent folder | download | duplicates (2)
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
49
50
51
52
53
54
#!/bin/bash

#    R e m o v e    O L D    S t r u c t u r e    I f   T h e r e

BINDIR=/opt/hp/collectl

if [ -e $BINDIR ]; then

  # just uninstall utilities leaving collectl alone. 
  # if only utilities you much manually remove /opt/hp/collectl/*
  cd $BINDIR/docs
  rm -f RELEASE-colplot RELEASE-colmux RELEASE-collectl-utils
  rm -f INSTALL-colplot README FAQ-colplot.html colplot-help.html

  cd $BINDIR/sbin
  rm -f colplot.pl colplot.conf colmux.pl

  cd $BINDIR/man1
  rm -f colplot* colmux*

  rm -f $BINDIR/etc/colplot-apache.conf

  # only utilities use these
  rm -fr $BINDIR/lib
  rm -fr $BINDIR/plotfiles
fi

#    N e w    D i r e c t o r y    S t r u c t u r e

BINDIR=/usr/bin
DOCDIR=/usr/share/doc/colplot
SHRDIR=/usr/share/colplot

rm -f  $BINDIR/colplot
rm -f  $SHRDIR/colplotlib.defs
rm -f  $SHRDIR/colplotlib.ph
rm -f  $SHRDIR/tiny.ph
rm -f  $SHRDIR/oneperpage.ph
rm -fr $SHRDIR/plotfiles
rm -fr $DOCDIR

rm -f /usr/share/man/man1/colplot.1.gz

#    C l e a n    U p    W e b    S t r u c t u r e

rm -fr /var/www/colplot           # debian
rm -fr /var/www/html/colplot      # redhat
rm -fr /srv/www/htdocs/colplot    # SuSE

if [ -e /etc/apache2 ]; then
  echo "removing colplot from apache2 configuration"
  a2dissite colplot-apache
  service apache2 restart
fi