lkml.org 
[lkml]   [1996]   [Apr]   [23]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Subjectexpr bug in 1.3.93 :-)
Date
From
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


\
 
 \ /
  Last update: 2005-03-22 13:37    [W:0.021 / U:0.212 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site