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/