updated on Thu Jan 26 16:09:46 UTC 2012
[aur-mirror.git] / openoffice-de-bin-unstable / openoffice-i18n-bin.install
blob309d1bc52d2d1558cf13c0c54ce6e6259340926a
1 #!/bin/bash
3 post_install() {
4 local RPM_INSTALL_PREFIX='opt'
6 ( ### ooo-dev3-dict-de-DE-3.4.0-9583.i586.rpm postin
8 if [ -x "$RPM_INSTALL_PREFIX/ooo-dev3/program/unopkg" ]; then
9 "$RPM_INSTALL_PREFIX/ooo-dev3/program/unopkg" sync
10 if [ "$?" != "0" ]; then
11 echo "ERROR: Registration of extensions failed!"
12 exit 1
13 else
14 echo "SUCCESS: unopkg returns successful!"
16 find "$RPM_INSTALL_PREFIX/ooo-dev3/share/prereg/bundled" -type f -exec chmod 644 {} \;
19 exit 0
24 post_remove() {
25 local RPM_INSTALL_PREFIX='opt'
27 ( ### ooo-dev3-dict-de-DE-3.4.0-9583.i586.rpm postun
29 if [ -x "$RPM_INSTALL_PREFIX/ooo-dev3/program/unopkg" ]; then
30 "$RPM_INSTALL_PREFIX/ooo-dev3/program/unopkg" sync
31 if [ "$?" != "0" ]; then
32 echo "ERROR: Registration of extensions failed!"
33 exit 1
34 else
35 echo "SUCCESS: unopkg returns successful!"
37 find "$RPM_INSTALL_PREFIX/ooo-dev3/share/prereg/bundled" -type f -exec chmod 644 {} \;
40 exit 0
45 ## arg 1: the new package version
46 ## arg 2: the old package version
47 post_upgrade() {
48 post_install "$1"
51 # vim:set ts=2 sw=2 et: