summarylogtreecommitdiffstats
path: root/openoffice-i18n-bin.install
blob: cfac2af17c427ba5eca0f7aaedb00f0375b62687 (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
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
#!/bin/bash

post_install() {
	: # obsolete code
	
  local RPM_INSTALL_PREFIX='opt'

  ( ### ooo-dev3-dict-ru-RU-3.4.0-9583.i586.rpm postin

if [ -x "$RPM_INSTALL_PREFIX/openoffice4/program/unopkg" ]; then
  "$RPM_INSTALL_PREFIX/openoffice4/program/unopkg" sync 
  if [ "$?" != "0" ]; then
    echo "ERROR: Registration of extensions failed!"
    exit 1
  else
    echo "SUCCESS: unopkg returns successful!"
  fi
  find "$RPM_INSTALL_PREFIX/openoffice4/share/prereg/bundled" -type f -exec chmod 644 {} \;
fi

exit 0
  )

}

post_remove() {
	: # obsolete code

  local RPM_INSTALL_PREFIX='opt'

  ( ### ooo-dev3-dict-ru-RU-3.4.0-9583.i586.rpm postun

if [ -x "$RPM_INSTALL_PREFIX/openoffice4/program/unopkg" ]; then
  "$RPM_INSTALL_PREFIX/openoffice4/program/unopkg" sync 
  if [ "$?" != "0" ]; then
    echo "ERROR: Registration of extensions failed!"
    exit 1
  else
    echo "SUCCESS: unopkg returns successful!"
  fi
  find "$RPM_INSTALL_PREFIX/openoffice4/share/prereg/bundled" -type f -exec chmod 644 {} \;
fi

exit 0
  )

}

## arg 1:  the new package version
## arg 2:  the old package version
post_upgrade() {
  post_install "$1"
}

# vim:set ts=2 sw=2 et: