Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/bin/bash
- set -e
- mapFile="${2:-map.html}"
- cp viewer.html map.html
- echo '<script id="gpsdata" type="text/xmldata">' >> "${mapFile}"
- # remove <?xml header
- tail -n +2 "${1:-out.gpx}" >> "${mapFile}"
- echo '</script>' >> "${mapFile}"
Advertisement
Add Comment
Please, Sign In to add comment