From 1d3508f66fddf3f8c6416e59ab9fbde405dbcf25 Mon Sep 17 00:00:00 2001 From: typebrook Date: Sun, 17 Nov 2019 09:18:07 +0800 Subject: update --- scripts/osm/osm.api.change.create | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 scripts/osm/osm.api.change.create (limited to 'scripts/osm/osm.api.change.create') diff --git a/scripts/osm/osm.api.change.create b/scripts/osm/osm.api.change.create new file mode 100644 index 0000000..1f17334 --- /dev/null +++ b/scripts/osm/osm.api.change.create @@ -0,0 +1,21 @@ +#!/bin/sh + +echo -n "type comment: " +read comment + +info=" + + + + + + " + +echo $info |\ +curl -u $OSM_USER_PASSWD --upload-file - $OSM_API/changeset/create |\ +tee /dev/tty |\ +tail -1 | read changeset_id + +echo " copied into clipboard" +echo "changeset created, check $OSM_SERVER/changeset/$changeset_id" +echo $changeset_id | xsel -ib -- cgit v1.2.3-70-g09d2