Hi all,

It was reported that svn-version fails in the Express Development
Environment.  This results in RPM filenames and sipXconfig showing
"unknown" for the version number.

This is actually due to a limitation in the svn-version script when run
on git repositories.  The script uses the return value of "git branch"
to decide if you're using git.  But this only succeeds when the command
is actually run from within a git repository.

The EDE happens to put it's BUILD directory outside the source code
directory structure.  Since make is run from BUILD, the svn-version
command fails.

In order to fix the problem I'm proposing to pushd into $topdir (e.g.
/home/sipx/WORKING/main/sipXconfig) near the top of the script, and popd
at the end.  This seems to work well for both git and svn.  

Any objections to this change?  (Patch attached.)
 <<0001-Changed-the-svn-version-script-to-work-for-git-even.patch>> 

Thanks.


-Paul
[email protected]




Attachment: 0001-Changed-the-svn-version-script-to-work-for-git-even.patch
Description: 0001-Changed-the-svn-version-script-to-work-for-git-even.patch

_______________________________________________
sipx-dev mailing list
[email protected]
List Archive: http://list.sipfoundry.org/archive/sipx-dev
Unsubscribe: http://list.sipfoundry.org/mailman/listinfo/sipx-dev

Reply via email to