Index: /applications/editors/josm/plugins/smed/build.xml
===================================================================
--- /applications/editors/josm/plugins/smed/build.xml	(revision 23472)
+++ /applications/editors/josm/plugins/smed/build.xml	(revision 23473)
@@ -79,5 +79,5 @@
     **********************************************************
     -->
-	<target name="dist" depends="compile">
+	<target name="dist" depends="compile, revision">
 		<echo message="creating ${ant.project.name}.jar ... "/>
 
@@ -133,4 +133,24 @@
 	<!--
     **********************************************************
+    ** revision - extracts the current revision number for the
+    **    file build.number and stores it in the XML property
+    **    version.*
+    **********************************************************
+    -->
+	<target name="revision">
+
+		<exec append="false" output="REVISION" executable="svn" failifexecutionfails="false">
+			<env key="LANG" value="C"/>
+			<arg value="info"/>
+			<arg value="--xml"/>
+			<arg value="."/>
+		</exec>
+		<xmlproperty file="REVISION" prefix="version" keepRoot="false" collapseAttributes="true"/>
+		<delete file="REVISION"/>
+	</target>
+
+	
+	<!--
+    **********************************************************
     ** clean - clean up the build environment
     **********************************************************
