Messages in this thread |  | | Date | Thu, 20 Sep 2001 15:37:35 +0200 (CEST) | From | willy tarreau <> | Subject | Re: [PATCH] Make kernel build numbers work again (was: Re: Cannot compile 2.4.10pre12aa1 with 2.95.2 on |
| |
Hi !
Why not simply something like this :
newversion: - . scripts/mkversion > .version + echo $$[`cat .version 2>/dev/null`+1] > .version
The shell evaluates the `cat` expression before it writes to ".version", so there's no temp file needed anymore.
Comments ?
Willy
___________________________________________________________ Do You Yahoo!? -- Un e-mail gratuit @yahoo.fr ! Yahoo! Courrier : http://fr.mail.yahoo.com - 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/
|  |