Source-Changes archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
re: CVS commit: syssrc
Added Files:
syssrc/sys/conf: newvers_stand.sh
Log Message:
new MI bootblock versioning helper for generating vers.c,
intended to replace all the various port's stand/*/newvers.sh scripts
architectures will be switched to this gradually as tested
could you please look at my 'awk' version of thie script, that is in
several ports dirs? it is faster than your grep/sed/head version..
it looks like:
r=`awk '/^Version:/ { print $2 } ' $1`
though you might want to make it like:
r=`awk '/^Version:/ { print $2; exit } ' $1`
just to be sure.
everyone should learn 'awk' better -- it does many of the jobs that
people use long pipelines for quite well. one of perl's best points
is that it *highly* derived from awk... :-)
Home |
Main Index |
Thread Index |
Old Index