LKML Archive on lore.kernel.org
help / color / mirror / Atom feed
* makefile fix
@ 2004-05-29 20:51 carbonated beverage
2004-05-30 23:38 ` Paul Jackson
2004-05-31 6:27 ` Sam Ravnborg
0 siblings, 2 replies; 4+ messages in thread
From: carbonated beverage @ 2004-05-29 20:51 UTC (permalink / raw)
To: linux-kernel
Every time I build on the Ultra, I get a file called "64" in the top-level
directory. Here's a small patch to make it do the right thing(tm).
Note, I'm using ash as my /bin/sh. Works for me, at least, with bash and
ash.
-- DN
Daniel
===== Makefile 1.487 vs edited =====
--- 1.487/Makefile 2004-05-19 09:02:53 -07:00
+++ edited/Makefile 2004-05-29 13:54:29 -07:00
@@ -680,7 +680,7 @@
uts_len := 64
define filechk_version.h
- if ((`echo -n "$(KERNELRELEASE)" | wc -c ` > $(uts_len))); then \
+ if [ `echo -n "$(KERNELRELEASE)" | wc -c ` -gt $(uts_len) ]; then \
echo '"$(KERNELRELEASE)" exceeds $(uts_len) characters' >&2; \
exit 1; \
fi; \
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: makefile fix
2004-05-29 20:51 makefile fix carbonated beverage
@ 2004-05-30 23:38 ` Paul Jackson
2004-05-31 6:27 ` Sam Ravnborg
1 sibling, 0 replies; 4+ messages in thread
From: Paul Jackson @ 2004-05-30 23:38 UTC (permalink / raw)
To: carbonated beverage; +Cc: linux-kernel
The (( x > y )) syntax looks like ksh stuff,
equivalent to the more widely supported [ x -gt y ].
Your patch looks reasonable to me.
--
I won't rest till it's the best ...
Programmer, Linux Scalability
Paul Jackson <pj@sgi.com> 1.650.933.1373
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: makefile fix
2004-05-29 20:51 makefile fix carbonated beverage
2004-05-30 23:38 ` Paul Jackson
@ 2004-05-31 6:27 ` Sam Ravnborg
1 sibling, 0 replies; 4+ messages in thread
From: Sam Ravnborg @ 2004-05-31 6:27 UTC (permalink / raw)
To: carbonated beverage; +Cc: linux-kernel
On Sat, May 29, 2004 at 01:51:09PM -0700, carbonated beverage wrote:
> Every time I build on the Ultra, I get a file called "64" in the top-level
> directory. Here's a small patch to make it do the right thing(tm).
>
> Note, I'm using ash as my /bin/sh. Works for me, at least, with bash and
> ash.
Patch is already in Linus' tree. Christoph digged it out of Debian.
Sam
^ permalink raw reply [flat|nested] 4+ messages in thread
* RE: makefile fix
@ 2004-06-01 14:19 Piszcz, Justin Michael
0 siblings, 0 replies; 4+ messages in thread
From: Piszcz, Justin Michael @ 2004-06-01 14:19 UTC (permalink / raw)
To: Paul Jackson, carbonated beverage; +Cc: linux-kernel
Quick FYI:
Bash supports C-style if() statements using double parenthesis.
$ if (( 5 > 3 )); then
> echo hi
> fi
Hi
-----Original Message-----
From: linux-kernel-owner@vger.kernel.org
[mailto:linux-kernel-owner@vger.kernel.org] On Behalf Of Paul Jackson
Sent: Sunday, May 30, 2004 7:39 PM
To: carbonated beverage
Cc: linux-kernel@vger.kernel.org
Subject: Re: makefile fix
The (( x > y )) syntax looks like ksh stuff,
equivalent to the more widely supported [ x -gt y ].
Your patch looks reasonable to me.
--
I won't rest till it's the best ...
Programmer, Linux Scalability
Paul Jackson <pj@sgi.com> 1.650.933.1373
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel"
in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2004-06-01 14:19 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-05-29 20:51 makefile fix carbonated beverage
2004-05-30 23:38 ` Paul Jackson
2004-05-31 6:27 ` Sam Ravnborg
2004-06-01 14:19 Piszcz, Justin Michael
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).