From 00b136155183ae522ca458e540a8cf29bf525e74 Mon Sep 17 00:00:00 2001 From: typebrook Date: Thu, 27 Feb 2020 16:32:37 +0800 Subject: update --- tools/osm/osm.api.changeset.upload | 6 ++++++ 1 file changed, 6 insertions(+) create mode 100755 tools/osm/osm.api.changeset.upload (limited to 'tools/osm/osm.api.changeset.upload') diff --git a/tools/osm/osm.api.changeset.upload b/tools/osm/osm.api.changeset.upload new file mode 100755 index 0000000..96bdff4 --- /dev/null +++ b/tools/osm/osm.api.changeset.upload @@ -0,0 +1,6 @@ +#!/bin/sh + +cat $2 |\ +sed -r "/<(node|way|relation)/ s/>/ changeset=\"$1\">/" |\ +tee /dev/tty |\ +curl -X POST -u $OSM_USER_PASSWD -i -T - $OSM_API/changeset/$1/upload -- cgit v1.2.3-70-g09d2