PATCH: winelauncher / head
Marcus Meissner
meissner at suse.de
Mon Sep 1 03:39:52 CDT 2003
Hi,
Strictly POSIX compliant head/tail now requires -n 1 instead of -1 as argument.
Ciao, Marcus
Changelog:
Change all head -1 to head -n 1 to be more POSIXly compliant.
Index: programs/winelauncher.in
===================================================================
RCS file: /home/wine/wine/programs/winelauncher.in,v
retrieving revision 1.2
diff -u -r1.2 winelauncher.in
--- programs/winelauncher.in 5 Jul 2002 21:18:41 -0000 1.2
+++ programs/winelauncher.in 1 Sep 2003 08:38:48 -0000
@@ -148,30 +148,30 @@
#------------------------------------------------------------------------------
WINE_BIN_NAME=wine.bin
if [ ! -x $WINEBIN/$WINE_BIN_NAME ] ; then
- WINEBIN=`find $argv0_dir -maxdepth 1 -perm +0111 -type f -name "$WINE_BIN_NAME" -printf "%h\n" | head -1`
+ WINEBIN=`find $argv0_dir -maxdepth 1 -perm +0111 -type f -name "$WINE_BIN_NAME" -printf "%h\n" | head -n 1`
fi
if [ ! -x $WINEBIN/$WINE_BIN_NAME ] ; then
- WINEBIN=`find $argv0_dir/../ -maxdepth 1 -perm +0111 -type f -name "$WINE_BIN_NAME" -printf "%h\n" | head -1`
+ WINEBIN=`find $argv0_dir/../ -maxdepth 1 -perm +0111 -type f -name "$WINE_BIN_NAME" -printf "%h\n" | head -n 1`
fi
if [ ! -x $WINEBIN/$WINE_BIN_NAME ] ; then
WINE_BIN_NAME=wine
if [ ! -x $WINEBIN/$WINE_BIN_NAME ] ; then
- WINEBIN=`find $argv0_dir -maxdepth 1 -perm +0111 -type f -name "$WINE_BIN_NAME" -printf "%h\n" | head -1`
+ WINEBIN=`find $argv0_dir -maxdepth 1 -perm +0111 -type f -name "$WINE_BIN_NAME" -printf "%h\n" | head -n 1`
fi
if [ ! -x $WINEBIN/$WINE_BIN_NAME ] ; then
- WINEBIN=`find $argv0_dir/../ -maxdepth 1 -perm +0111 -type f -name "$WINE_BIN_NAME" -printf "%h\n" | head -1`
+ WINEBIN=`find $argv0_dir/../ -maxdepth 1 -perm +0111 -type f -name "$WINE_BIN_NAME" -printf "%h\n" | head -n 1`
fi
fi
if [ ! -r $WINELIB/libwine.so ] ; then
- WINELIB=`find $argv0_dir -maxdepth 2 -name 'libwine.so' -printf "%h\n" | head -1`
+ WINELIB=`find $argv0_dir -maxdepth 2 -name 'libwine.so' -printf "%h\n" | head -n 1`
fi
if [ ! -r $WINELIB/libwine.so ] ; then
- WINELIB=`find $argv0_dir/../ -maxdepth 2 -name 'libwine.so' -printf "%h\n" | head -1`
+ WINELIB=`find $argv0_dir/../ -maxdepth 2 -name 'libwine.so' -printf "%h\n" | head -n 1`
fi
if [ -x $WINEBIN/wineserver ] ; then
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 481 bytes
Desc: not available
Url : http://www.winehq.org/pipermail/wine-patches/attachments/20030901/d10af9d8/attachment.pgp
More information about the wine-patches
mailing list