#!/bin/bash
# usage:
#   jpg2gps-all *.jpg > photo-list.asc
#
# read out all EXIF coordinates from JPEG pictures
# and write to ASCII CSV Waypoint File with picture names
# frank, 21.12.2006

if [ $# -eq 0 ]; then
  echo "usage: jpg2gps-all *.jpg > photo-list.asc"
  exit
fi

for name in "$@"; do 
	coordinates=`jpg2gps "$name"`
	echo $coordinates,\"$name\"
done
