Index: /trunk/build.xml
===================================================================
--- /trunk/build.xml	(revision 5361)
+++ /trunk/build.xml	(revision 5362)
@@ -55,4 +55,5 @@
         <property name="version.entry.commit.revision" value="UNKNOWN"/>
         <mkdir dir="${revision.dir}"/>
+        <!-- add Build-Name: ... when making special builds, e.g. DEBIAN -->
         <echo file="${revision.dir}/REVISION">
 # automatically generated by JOSM build.xml - do not edit
Index: /trunk/src/org/openstreetmap/josm/data/Version.java
===================================================================
--- /trunk/src/org/openstreetmap/josm/data/Version.java	(revision 5361)
+++ /trunk/src/org/openstreetmap/josm/data/Version.java	(revision 5362)
@@ -68,4 +68,5 @@
     private String releaseDescription;
     private String time;
+    private String buildName;
     private boolean isLocalBuild;
 
@@ -131,4 +132,12 @@
         }
 
+        // is this a specific build ?
+        //
+        buildName = null;
+        value = properties.get("Build-Name");
+        if (value != null && !value.trim().isEmpty())  {
+            buildName = value.trim();
+        }
+
         // the revision info
         //
@@ -199,4 +208,7 @@
         int v = getVersion();
         String s = (v == JOSM_UNKNOWN_VERSION) ? "UNKNOWN" : Integer.toString(v);
+        if (buildName != null) {
+            s += " " + buildName;
+        }
         if (isLocalBuild() && v != JOSM_UNKNOWN_VERSION) {
             s += " SVN";
