Vitaliy Margolen : wineshelllink: Don't hard-code icon extension to xpm.

Alexandre Julliard julliard at winehq.org
Mon Mar 24 07:55:15 CDT 2008


Module: wine
Branch: master
Commit: e664379a06e3b8dcd4835c4b0d43bdbf9587f91f
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=e664379a06e3b8dcd4835c4b0d43bdbf9587f91f

Author: Vitaliy Margolen <wine-patches at kievinfo.com>
Date:   Sun Mar 23 14:16:30 2008 -0600

wineshelllink: Don't hard-code icon extension to xpm.

---

 tools/wineshelllink |    5 +++--
 1 files changed, 3 insertions(+), 2 deletions(-)

diff --git a/tools/wineshelllink b/tools/wineshelllink
index a58fb18..0c02bda 100755
--- a/tools/wineshelllink
+++ b/tools/wineshelllink
@@ -116,10 +116,11 @@ copy_icon()
 {
     if [ -f "$icon" ]
     then
-        xpmicon=`basename "$icon" .xpm`
+        xpmicon=`basename "$icon"`
+        xpmicon=${xpmicon%.*}
 
         mkdir -p "$1"
-        cp "$icon" "$1/$xpmicon.xpm"
+        cp "$icon" "$1"
     else
         xpmicon=""
     fi




More information about the wine-cvs mailing list