summarylogtreecommitdiffstats
path: root/maple18.install
blob: a5211f1ae65eb827d6ead410b5e84887f6c24d15 (plain)
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
pre_install() {
  if [ -f "/usr/share/applications/mapleclassic18.desktop" ]; then
    rm /usr/share/applications/mapleclassic18.desktop
  fi
  if [ -f "/usr/share/applications/maplearchive18.desktop" ]; then
    rm /usr/share/applications/maplearchive18.desktop
  fi
  if [ -f "/usr/share/applications/maple18.desktop" ]; then
    rm /usr/share/applications/maple18.desktop
  fi
}

post_install() {
  echo -e "\033[1;33mRunning Maple 18 activation wizard!\033[0m"
  exec /usr/share/maple18/bin/activation
}

pre_upgrade() {
  if [ -f "/usr/share/applications/mapleclassic18.desktop" ]; then
    rm /usr/share/applications/mapleclassic18.desktop
  fi
  if [ -f "/usr/share/applications/maplearchive18.desktop" ]; then
    rm /usr/share/applications/maplearchive18.desktop
  fi
}

post_upgrade() {
  post_install
}

post_remove() {
  rm -rf /usr/share/maple18
}