2007/11/29, Ingo Weinhold <ingo_weinhold@xxxxxx>: > > > On 2007-11-28 at 18:25:25 [+0100], Bolesław Kulbabiński <bolekk@xxxxxxxxx> > wrote: > > Hello, > > > > I've encountered this problem while jamming the haiku source: > > > > CopySetHaikuRevision1 > > generated/objects/haiku/x86/release/system/kernel/revisioned/kernel_x86 > > Usage: set_haiku_revision > > > > Finds the haiku revision section in ELF object file and replaces the > > writes the number given by into the first 32 bits of the > > section. > > > > export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:generated/objects/linux/lib > > revision=`(LANG=C svn info . 2> /dev/null || echo Revision: 0) | > > grep Revision | awk '{printf $2}'` > > generated/objects/linux/x86/release/tools/copyattr --data > > generated/objects/haiku/x86/release/system/kernel/kernel_x86 > > generated/objects/haiku/x86/release/system/kernel/revisioned/kernel_x86 > && > > generated/objects/linux/x86/release/tools/set_haiku_revision > > generated/objects/haiku/x86/release/system/kernel/revisioned/kernel_x86 > > ${revision} > > > > ...failed CopySetHaikuRevision1 > > generated/objects/haiku/x86/release/system/kernel/revisioned/kernel_x86 > ... > > ...removing > > generated/objects/haiku/x86/release/system/kernel/revisioned/kernel_x86 > > ...skipped haiku.image-copy-files-dummy-beos/system for lack of > > kernel_x86... > > Apparently the expression to get the SVN revision number doesn't work on > your > platform (maybe newer/older svn version? Or awk not installed?). Please > check > what these command lines return (run in the root directory of the checked > out > Haiku sources): > > LANG=C svn info . > > (LANG=C svn info . 2> /dev/null || echo Revision: 0) | grep Revision | awk > '{printf $2}' > > CU, Ingo > > Okay, it's working now, I don't know why but LANG=C wasn't affecting the output of svn info, which was in Polish in my case, and thus grep was unable to find the string "Revision" in it. I changed locales and it helped. Thanks for your help, Bolek