#!/bin/bash
OUTDIR=compressed
mkdir -p $OUTDIR
for gpx in $(find . -maxdepth 1 -iname "*.gpx");
do
echo -n "Compressing ${gpx}... "
../../../org/gpx_web_viewer/python/gpxsimplify.sh -f ${gpx} -d 10 > compressed/${gpx}
echo "Done!"
done