Somehow I had a .version file with 0 length. So of course
it exists, but I get this funny little error:
LightHouse/usr/src/os/linux/linux:$ make zImage modules
gcc -D__KERNEL__ -I/usr/src/os/linux/linux/include -Wall -Wstrict-prototypes -O2
-fomit-frame-pointer -fno-strength-reduce -pipe -m386 -DCPU=386 -c -o init/mai
n.o init/main.c
expr: syntax error
make: *** [newversion] Error 2
And some delving in the makefile shows that:
newversion:
@if [ ! -f .version ]; then \
echo 1 > .version; \
else \
expr `cat .version` + 1 > .version; \
fi
Was my problem. ARGH! It doesn't have to be
that complicated, really!
Try the following instead:
newversion:
expr 0`cat .version` + 1 > .version
now that wasn't painful, was it?
:-)
-- Todd Fries