On 13/02/2009, Spencer Oliver <s...@spen-soft.co.uk> wrote: > > > > > I have just done a quick check of this. > > There is a issue that does need looking at when building in > > another dir. > > > > when guess-rev is run it is run from the build dir, in this > > case it does not contain any svn files. So the result in this > > case will be 'exported'. > > > > I will try and look into this tomorrow if i get 5 minutes. > > > > Cheers > > Spen > > > > > something like the attached should solve the problem. > It changes the working dir before running guess-rev.sh, so when the build > dir is not the src dir it all still works as expected. > > I have tested linux, cygwin and mingw. No objections i will commit. > > Cheers > Spen
I think you should be able to give the source dir directly to svnversion rather than changing directory. Apparently older versions of svnversion required this anyway. For example svnversion -n "$1" _______________________________________________ Openocd-development mailing list Openocd-development@lists.berlios.de https://lists.berlios.de/mailman/listinfo/openocd-development