summaryrefslogtreecommitdiff
path: root/setup_native/source/packinfo/shellscripts_module.txt
blob: 32a15da9bdc6ff4a928642c44930072cd72c8688 (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
%format deb

%postinstall << END
if [ "$$1" = "configure" ] ; then
  # update desktop database
  if [ -x /usr/bin/update-desktop-database ]; then
    update-desktop-database -q /usr/share/applications
  fi
  # update debian style menus
  if [ -x /usr/bin/update-menus ]; then
    update-menus
  fi
fi
exit 0
END

%postremove << END
if [ "$$1" != "purge" ]
then
  if [ -x /usr/bin/update-desktop-database ]
  then
    update-desktop-database -q /usr/share/applications
  fi
  if [ -x /usr/bin/update-menus ]
  then
    update-menus
  fi
fi
exit 0
END

%format all