You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 

17 lines
333 B

#!/bin/sh
basedir="$(cd $(dirname $0); pwd)"
set -e
if [ ! -d kml-data ]; then mkdir kml-data ; fi
for harfile in "$@" ; do
filename=$(basename $harfile .har)
kmlfile="kml-data/$filename.kml"
if $basedir/har2kml "$harfile" > $kmlfile.new ; then
mv $kmlfile.new $kmlfile
else
rm $kmlfile.new
fi
done