3 # Simple shell script for installing SPLAT! and associated utilities.
4 # Written by John A. Magliacane, KD2BD April 2002. Updated March 2009.
9 cp citydecoder /usr/local/bin
10 echo "citydecoder installed!"
15 cp usgs2sdf /usr/local/bin
16 echo "usgs2sdf installed!"
21 cp srtm2sdf /usr/local/bin
22 rm -f /usr/local/bin/srtm2sdf-hd
23 ln -s /usr/local/bin/srtm2sdf /usr/local/bin/srtm2sdf-hd
24 echo "srtm2sdf and srtm2sdf-hd installed!"
29 cp fontdata /usr/local/bin
30 echo "fontdata installed!"
35 if [ "$whoami" != "root" ]; then
36 echo "Sorry, $whoami. You need to be 'root' to install this software. :-("
39 if [ "$#" = "0" ]; then
40 echo "Usage: ./install { citydecoder, srtm2sdf, usgs2sdf, fontdata, all }"
43 if [ "$1" = "citydecoder" ] && [ "$whoami" = "root" ] && [ -x citydecoder ]; then
47 if [ "$1" = "srtm2sdf" ] && [ "$whoami" = "root" ] && [ -x srtm2sdf ]; then
51 if [ "$1" = "usgs2sdf" ] && [ "$whoami" = "root" ] && [ -x usgs2sdf ]; then
55 if [ "$1" = "fontdata" ] && [ "$whoami" = "root" ] && [ -x fontdata ]; then
59 if [ "$1" = "all" ] && [ "$whoami" = "root" ]; then
60 if [ -x citydecoder ]; then
64 if [ -x srtm2sdf ]; then
68 if [ -x usgs2sdf ]; then
72 if [ -x fontdata ]; then
77 if [ "$1" != "citydecoder" ] && [ "$1" != "srtm2sdf" ] && [ "$1" != "usgs2sdf" ] && [ "$1" != "fontdata" ] && [ "$1" != "all" ]; then
78 echo "Usage: install { citydecoder, srtm2sdf, usgs2sdf, fontdata, all }"