aboutsummaryrefslogtreecommitdiffhomepage
path: root/bin/osm/osm.api.upload.to
blob: 39792206a977a50087e9681e48a67c9c07044ef8 (plain)
1
2
3
4
5
6
7
8
9
10
11
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