patch for the ldconfig fix in latest snapshot

David Laight david at l8s.co.uk
Sun May 12 16:33:29 CDT 2002


On Sat, May 11, 2002 at 08:30:56PM -0700, Francois Gouget wrote:
> 
> I would be more comfortable with the following (warning, direct edit of
> the original patch):

or even....

> --- tools/wineinstall	Sat May  4 13:31:24 2002
> +++ tools/wineinstall.new	Sat May 11 01:19:04 2002
> @@ -319,7 +319,8 @@
>      # to our sucommand string
>      if [ -f /etc/ld.so.conf ]
>      then
> -      if [ ! grep -qs "$libdir" /etc/ld.so.conf ]
> +      grep -qs "$libdir" /etc/ld.so.conf 2>/dev/null || {
>  	echo
>  	echo "$libdir doesn't exist in your /etc/ld.so.conf, it will be added"

remembering to delete the endif...

I normally use && and || rather than if/then/else/endif
- generates slightly more concise shell scripts :-)

	David

-- 
David Laight: david at l8s.co.uk



More information about the wine-devel mailing list