[PATCH] UTS version naming a-la BSD

Alexander L. Belikoff (abel@bfr.co.il)
23 Jun 1999 14:57:04 +0300


Hi everybody,

I've been always missing the ability to have some kind of unique
kernel identifier in the UTS version string. So far, Linux just has a
version number (the one printed after the '#' sign). Basically,
whenever you rebuild a kernel, that number gets incremented.

Here is a trivial patch, that allows you to put pretty much anything
past the # sign - just put it in the .version file. If you don't tweak
it, the default functionality is employed.

--- Makefile Wed Jun 23 08:38:45 1999
+++ Makefile.new Wed Jun 23 08:41:41 1999
@@ -250,7 +250,7 @@
newversion:
@if [ ! -f .version ]; then \
echo 1 > .version; \
- else \
+ elif egrep -q '^[0-9]+$$' .version; then \
expr 0`cat .version` + 1 > .version; \
fi

Regards,

-- 
Alexander L. Belikoff
Bloomberg L.P. / BFM Financial Research Ltd.
abel@vallinor4.com, abel@bfr.co.il

- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.rutgers.edu Please read the FAQ at http://www.tux.org/lkml/