openstreetmap/josm — pull request #5 by AlfonZ42 (2013-10-13 08:43:31+00:00)
Title: Replace svn info for revision detection by git log+perl.

I didn't like that revision detection (hacked long ago in bcbc70ea2e5c51b5d27222fe69c7e963645ca263) was trying to access josm.openstreetmap.de (it made building impossible when offline) and revision number was not always correct (when working with older revisions).

I replaced _svn info_ by _git log_ + _perl_.
_git log_ looks at the most recent commit message with `git-svn-id`, which is then processed by perl script that produces revision number and date, which are needed in build.xml.
In case _perl_ is not found, the build doesn't fail, values fallback to `UNKNOWN`, as specified in build.xml.