Lines 115-122
Link Here
|
115 |
fi |
115 |
fi |
116 |
|
116 |
|
117 |
# create bash completion |
117 |
# create bash completion |
118 |
mkdir -p $OODESTDIR/etc/bash_completion.d |
118 |
mkdir -p $SYSCONFDIR/bash_completion.d |
119 |
$TOOLSDIR/bin/generate-bash-completion --binsuffix="$BINSUFFIX" $TOOLSDIR/bin/bash-completion.in $OODESTDIR/etc/bash_completion.d/ooffice${BINSUFFIX}.sh |
119 |
$TOOLSDIR/bin/generate-bash-completion --binsuffix="$BINSUFFIX" $TOOLSDIR/bin/bash-completion.in $SYSCONFDIR/bash_completion.d/ooffice${BINSUFFIX}.sh |
120 |
|
120 |
|
121 |
if test "z$VENDORNAME" != "zRedHat"; then |
121 |
if test "z$VENDORNAME" != "zRedHat"; then |
122 |
mkdir -p $MANDIR/man1 |
122 |
mkdir -p $MANDIR/man1 |
Lines 176-186
Link Here
|
176 |
# Icons and menu stuff is handled in actions.py |
176 |
# Icons and menu stuff is handled in actions.py |
177 |
;; |
177 |
;; |
178 |
*) |
178 |
*) |
179 |
mkdir -p $OODESTDIR/usr/share/applications |
179 |
mkdir -p $DATADIR/applications |
180 |
cd $TOOLSDIR/desktop |
180 |
cd $TOOLSDIR/desktop |
181 |
for source in *.desktop ; do |
181 |
for source in *.desktop ; do |
182 |
dest=`echo $source | sed "s|.desktop\$||"` |
182 |
dest=`echo $source | sed "s|.desktop\$||"` |
183 |
dest="$OODESTDIR/usr/share/applications/$dest$BINSUFFIX.desktop" |
183 |
dest="$DATADIR/applications/$dest$BINSUFFIX.desktop" |
184 |
add_version= |
184 |
add_version= |
185 |
test "z$VENDORNAME" = "zNovell" -a "z$BINSUFFIX" != "z" && add_version=" ($VERSION)" || : |
185 |
test "z$VENDORNAME" = "zNovell" -a "z$BINSUFFIX" != "z" && add_version=" ($VERSION)" || : |
186 |
sed -e "s|\(^Name.*\)\$|\1$add_version| |
186 |
sed -e "s|\(^Name.*\)\$|\1$add_version| |
Lines 188-194
Link Here
|
188 |
done |
188 |
done |
189 |
|
189 |
|
190 |
# icons |
190 |
# icons |
191 |
icondir=/usr/share/icons/hicolor |
191 |
icondir=$DATADIRBASE/icons/hicolor |
192 |
for size in 16x16 22x22 24x24 32x32 48x48 scalable ; do |
192 |
for size in 16x16 22x22 24x24 32x32 48x48 scalable ; do |
193 |
mkdir -p $OODESTDIR/$icondir/$size/apps |
193 |
mkdir -p $OODESTDIR/$icondir/$size/apps |
194 |
cd $TOOLSDIR/desktop/$size/ |
194 |
cd $TOOLSDIR/desktop/$size/ |
Lines 202-208
Link Here
|
202 |
done |
202 |
done |
203 |
|
203 |
|
204 |
# create symlinks below share/pixmaps to keep the backward compatibility |
204 |
# create symlinks below share/pixmaps to keep the backward compatibility |
205 |
pixmapsdir=$OODESTDIR/usr/share/pixmaps |
205 |
pixmapsdir=$DATADIR/pixmaps |
206 |
mkdir -p $pixmapsdir |
206 |
mkdir -p $pixmapsdir |
207 |
cd $OODESTDIR/$icondir/48x48/apps |
207 |
cd $OODESTDIR/$icondir/48x48/apps |
208 |
for icon in ooo-*.png ; do |
208 |
for icon in ooo-*.png ; do |
Lines 210-218
Link Here
|
210 |
done |
210 |
done |
211 |
|
211 |
|
212 |
# shared MIME info |
212 |
# shared MIME info |
213 |
mkdir -p $OODESTDIR/usr/share/mime/packages |
213 |
mkdir -p $DATADIR/mime/packages |
214 |
cd $TOOLSDIR/desktop |
214 |
cd $TOOLSDIR/desktop |
215 |
cp openoffice.xml $OODESTDIR/usr/share/mime/packages |
215 |
cp openoffice.xml $DATADIR/mime/packages |
216 |
if test "z$RUN_POST_INSTALL_SCRIPTS" = "zyes" && |
216 |
if test "z$RUN_POST_INSTALL_SCRIPTS" = "zyes" && |
217 |
which update-mime-database >/dev/null 2>&1 ; then |
217 |
which update-mime-database >/dev/null 2>&1 ; then |
218 |
update-mime-database /usr/share/mime || : |
218 |
update-mime-database /usr/share/mime || : |