Re: using "head -n 1" instead "head -1"?

2010-01-20 Thread Dan Williams
On Fri, 2009-11-20 at 13:49 +0800, 代尔欣 wrote:
> Hi all,
>Not sure this has been mentioned before? NM0.7.1.998 configure
> script when check intltool with:
> INTLTOOL_APPLIED_VERSION=`intltool-update --version | head -1 | cut
> -d" " -f3`
> 
> It use "head -1". Better using "head -n 1" instead? "head -1" will get
> error in some environment.
> "head: `-1' option is obsolete; use `-n 1'" 
> and make the configure failed.
> 
> So in the m4/intltool.m4.

Ah; this isn't in git but I believe is generated by the build process.
So you wouldn't get this problem if you did a 'make distcheck' from the
git sources yourself.  I'll keep this in mind when making future
tarballs.

Dan


___
NetworkManager-list mailing list
NetworkManager-list@gnome.org
http://mail.gnome.org/mailman/listinfo/networkmanager-list


using "head -n 1" instead "head -1"?

2009-11-19 Thread 代尔欣
Hi all,
   Not sure this has been mentioned before? NM0.7.1.998 configure script
when check intltool with:
INTLTOOL_APPLIED_VERSION=`intltool-update --version | head -1 | cut -d" "
-f3`

It use "head -1". Better using "head -n 1" instead? "head -1" will get error
in some environment.
"head: `-1' option is obsolete; use `-n 1'"
and make the configure failed.

So in the m4/intltool.m4.

Thanks!
___
NetworkManager-list mailing list
NetworkManager-list@gnome.org
http://mail.gnome.org/mailman/listinfo/networkmanager-list