Commit ccebf029 authored by Vitaly Lipatov's avatar Vitaly Lipatov

epm repack.d/generic-post.sh: rename generic icon.png to product name in all package types

parent c3db35d5
...@@ -75,11 +75,11 @@ for DESKTOPFILE in $BUILDROOT/usr/share/applications/*.desktop ; do ...@@ -75,11 +75,11 @@ for DESKTOPFILE in $BUILDROOT/usr/share/applications/*.desktop ; do
ICON="$(get_desktop_value "$DESKTOPFILE" "Icon")" ICON="$(get_desktop_value "$DESKTOPFILE" "Icon")"
# rename generic icon.png to product name to avoid conflicts between packages # rename generic icon.png to product name to avoid conflicts between packages
if [ "$ICON" = "icon" ] || [ "$ICON" = "icon.png" ] ; then if [ -f "$BUILDROOT/usr/share/pixmaps/icon.png" ] ; then
newicon="$PRODUCT" if [ -z "$ICON" ] || [ "$ICON" = "icon" ] || [ "$ICON" = "icon.png" ] ; then
if [ -f "$BUILDROOT/usr/share/pixmaps/icon.png" ] ; then newicon="$PRODUCT"
mv "$BUILDROOT/usr/share/pixmaps/icon.png" "$BUILDROOT/usr/share/pixmaps/$newicon.png" mv "$BUILDROOT/usr/share/pixmaps/icon.png" "$BUILDROOT/usr/share/pixmaps/$newicon.png"
subst "s|/usr/share/pixmaps/icon\.png|/usr/share/pixmaps/$newicon.png|" $SPEC subst "s|icon\.png|$newicon.png|" $SPEC
subst "s|^Icon=.*|Icon=$newicon|" "$DESKTOPFILE" subst "s|^Icon=.*|Icon=$newicon|" "$DESKTOPFILE"
ICON="$newicon" ICON="$newicon"
fi fi
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment