type vs. which

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 





Changelog:

   François Gouget <fgouget@codeweavers.com>

 * tools/wineshelllink
   which is more portable than type (FreeBSD)


-- 
François Gouget
fgouget@codeweavers.com
Index: tools/wineshelllink
===================================================================
RCS file: /home/wine/wine/tools/wineshelllink,v
retrieving revision 1.8
diff -u -r1.8 wineshelllink
--- tools/wineshelllink	2001/12/14 22:45:06	1.8
+++ tools/wineshelllink	2002/01/09 22:57:28
@@ -116,7 +116,7 @@
 
 # Debian/Mandrake
 
-type update-menus > /dev/null 2>&1
+which update-menus > /dev/null 2>&1
 if [ $? = 0 -a $mode = "menu" ]
 then
   iconname="`basename "$link"`.xpm"
@@ -143,7 +143,7 @@
     kde_entry > "$HOME/.kde/share/applnk/Wine/$link.kdelnk"
 
     # KDE 1.x kludge.  Wake up KDE, if we can find kpanel running
-    type kwmcom >/dev/null 2>/dev/null && \
+    which kwmcom >/dev/null 2>/dev/null && \
       ps u -C kpanel >/dev/null 2>/dev/null && \
         kwmcom kpanel:restart
 
@@ -151,7 +151,7 @@
   then
     kde_entry > "$HOME/Desktop/$link.kdelnk"
     #   KDE 1.x kludge:  wake up KDE, if we can find kfm running...
-    type kfmclient >/dev/null 2>/dev/null && \
+    which kfmclient >/dev/null 2>/dev/null && \
       ps u -C kfm >/dev/null 2>/dev/null  && \
         kfmclient refreshDesktop
   fi

[Index of Archives]     [Gimp for Windows]     [Red Hat]     [Samba]     [Yosemite Camping]     [Graphics Cards]     [Wine Home]

  Powered by Linux