From 6fae25b305d714b3ab7608fa003f1af9bf024545 Mon Sep 17 00:00:00 2001 From: Hsieh Chin Fan Date: Tue, 14 Feb 2023 13:33:23 +0800 Subject: Rename tools into bin --- bin/osm/osm.api.upload.to | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100755 bin/osm/osm.api.upload.to (limited to 'bin/osm/osm.api.upload.to') diff --git a/bin/osm/osm.api.upload.to b/bin/osm/osm.api.upload.to new file mode 100755 index 0000000..3979220 --- /dev/null +++ b/bin/osm/osm.api.upload.to @@ -0,0 +1,12 @@ +#! /bin/sh + +# allows multiple elements in osm body +tee /tmp/osm |\ +osm.list.ids |\ +sed 's#.*#osm.extract \0 < /tmp/osm#g' |\ +sed "s/.*/\0 \| osm.api.changeset.add $1/g" |\ +while read -r command +do + echo $command + source<(echo "($command &)") +done -- cgit v1.2.3-70-g09d2