6 # echo Command after installing
7 # searching for the PRODUCTINSTALLLOCATION for the different platforms
11 UREPACKAGE=SOLSUREPACKAGEPREFIX-ure
12 UREDIR=`pkginfo -r $$UREPACKAGE`
13 PRODUCTINSTALLLOCATION="$$BASEDIR"
16 UREPACKAGE=UREPACKAGEPREFIX-ure
17 UREDIR=`rpm -q --queryformat "%{INSTALLPREFIX}" $$UREPACKAGE`
18 PRODUCTINSTALLLOCATION="$$RPM_INSTALL_PREFIX"
21 PRODUCTINSTALLLOCATION="$$BASEDIR"
25 # creating link to ure
26 if [ -d $$UREDIR/openoffice.org/ure ]
28 ln -s $$UREDIR/openoffice.org/ure $$PRODUCTINSTALLLOCATION/openoffice.org/basisBASISDIRECTORYVERSION/ure-link >/dev/null 2>&1
30 ln -s ../ure $$PRODUCTINSTALLLOCATION/openoffice.org/basisBASISDIRECTORYVERSION/ure-link >/dev/null 2>&1
40 # echo Command after removing
42 LASTUNINSTALL=1 # important for RPM deinstallation
44 # searching for the PRODUCTINSTALLLOCATION for the different platforms
48 PRODUCTINSTALLLOCATION="$$BASEDIR"
51 PRODUCTINSTALLLOCATION="$$RPM_INSTALL_PREFIX"
52 if [ "$$1" = 1 ] # one package left after deinstallation -> update
58 PRODUCTINSTALLLOCATION="$$BASEDIR"
62 if [ -h $$PRODUCTINSTALLLOCATION/openoffice.org/basisBASISDIRECTORYVERSION/ure-link -a $$LASTUNINSTALL -eq 1 ]
64 rm -f $$PRODUCTINSTALLLOCATION/openoffice.org/basisBASISDIRECTORYVERSION/ure-link 2>/dev/null
65 rmdir $$PRODUCTINSTALLLOCATION/openoffice.org/basisBASISDIRECTORYVERSION 2>/dev/null
66 rmdir $$PRODUCTINSTALLLOCATION/openoffice.org 2>/dev/null