Messages in this thread | | | Subject | expr bug in 1.3.93 :-) | Date | Tue, 23 Apr 1996 03:20:48 -0500 (CDT) | From | (Todd Fries) |
| |
Um, here is an easy fix. I know not the intentions of whoever put this in the makefile, but I do know this is a more flexible solution.
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
| |