Bugzilla – Attachment 57124 Details for
Bug 44264
Redhat / Fedora desktop integration menu rpm is missing
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
ugly script to provide icons from libreoffice3.4-redhat-menus RPM
20120215_libo35_desktop (text/x-shellscript), 1.87 KB, created by
Richie Smit
on 2012-02-15 16:40:23 UTC
(
hide
)
Description:
ugly script to provide icons from libreoffice3.4-redhat-menus RPM
Filename:
MIME Type:
Creator:
Richie Smit
Created:
2012-02-15 16:40:23 UTC
Size:
1.87 KB
patch
obsolete
>#!/bin/bash ># Create phoney libreoffice3.5-redhat-menus from ># existing libreoffice3.4-redhat-menus package installed from previous version ># This is an ugly hack, and will not result in an RPM "libreoffice3.5-redhat-menus" being created or installed ># Richard Smit rfsmit@gmail.com 2012-02-15 > >for n in $(rpm -ql libreoffice3.4-redhat-menus);do > if file $n|grep -q "broken symbolic link"; then > # fix broken symlinks > t=$(ls -l $n|sed "s/.*->[[:space:]]*//") > fn=${n/libreoffice3.4/libreoffice3.5} > ft=${t/libreoffice3.4/libreoffice3.5} > echo "old symlink: $n -> $t" > echo " new symlink: $fn -> $ft" > ln -s $ft $fn > elif [[ $n =~ "libreoffice34" ]]; then > # copy icons > # as luck would have it, all icons are named *libreoffice34* > # BUT: LibO3.5 now seems to want them named with the period > fn1=${n/libreoffice34/libreoffice35} > fn2=${n/libreoffice34/libreoffice3.5} > echo "$n: creating new icon files: $fn1 $fn2" > cp $n $fn1 > cp $n $fn2 > else > # fix scripts & files > fn=${n/libreoffice3.4/libreoffice3.5} > echo "$n: fixing script or config in new file: $fn" > #grep -e libreoffice34 -e libreoffice3.4 -e "LibreOffice 3.4" $n > cp -p $n $fn > # the "cp -p" preserves timestamps as well, but the following sed > # updates that timestamp, leaving only mode and ownership preserved > sed -i \ > -e "s/libreoffice34/libreoffice35/g" \ > -e "s/libreoffice3.4/libreoffice3.5/g" \ > -e "s/LibreOffice 3.4/LibreOffice 3.5/g" \ > $fn > fi >echo . >done > ># cribbed from scripts of libreoffice3.4-redhat-menus package >for theme in gnome hicolor locolor; do > if [ -e /usr/share/icons/$theme/icon-theme.cache ] ; then > # touch it, just in case we cannot find the binary... > touch /usr/share/icons/$theme > if (which gtk-update-icon-cache); then > gtk-update-icon-cache /usr/share/icons/$theme > fi > # ignore errors (e.g. when there is a cache, but no index.theme) > true > fi >done
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Raw
Actions:
View
Attachments on
bug 44264
: 57124