diff options
Diffstat (limited to 'tools/osm/osm.api.changeset.commit')
-rwxr-xr-x | tools/osm/osm.api.changeset.commit | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/tools/osm/osm.api.changeset.commit b/tools/osm/osm.api.changeset.commit index 3c6188a..8e5026f 100755 --- a/tools/osm/osm.api.changeset.commit +++ b/tools/osm/osm.api.changeset.commit | |||
@@ -25,6 +25,7 @@ if [ -z ${OSM_USER_PASSWD} ]; then | |||
25 | fi | 25 | fi |
26 | 26 | ||
27 | create_changeset() { | 27 | create_changeset() { |
28 | SOURCE_TAG="${SOURCE:+<tag k=\'source\' v=\'$SOURCE\'/>}" | ||
28 | curl ${OSM_API}/changeset/create \ | 29 | curl ${OSM_API}/changeset/create \ |
29 | --user ${OSM_USER_PASSWD} \ | 30 | --user ${OSM_USER_PASSWD} \ |
30 | --upload-file - \ | 31 | --upload-file - \ |
@@ -32,6 +33,7 @@ create_changeset() { | |||
32 | <<EOF | tail -1 | 33 | <<EOF | tail -1 |
33 | <osm> | 34 | <osm> |
34 | <changeset> | 35 | <changeset> |
36 | ${SOURCE_TAG} | ||
35 | <tag k='comment' v='${comment}'/> | 37 | <tag k='comment' v='${comment}'/> |
36 | <tag k='created_by' v='bash script'/> | 38 | <tag k='created_by' v='bash script'/> |
37 | <tag k='bot' v='yes'/> | 39 | <tag k='bot' v='yes'/> |