3 # Simple shell script for installing SPLAT! and associated utilities.
4 # Written by John A. Magliacane, KD2BD April 2002. Updated February 2006.
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 echo "srtm2sdf installed!"
27 cp fontdata /usr/local/bin
28 echo "fontdata installed!"
33 if [ $whoami != "root" ]; then
34 echo "Sorry, $whoami. You need to be 'root' to install this software. :-("
37 if [ $# == "0" ]; then
38 echo "Usage: ./install { citydecoder, srtm2sdf, usgs2sdf, fontdata, all }"
41 if [ $1 == "citydecoder" ] && [ $whoami == "root" ] && [ -x citydecoder ]; then
45 if [ $1 == "srtm2sdf" ] && [ $whoami == "root" ] && [ -x srtm2sdf ]; then
49 if [ $1 == "usgs2sdf" ] && [ $whoami == "root" ] && [ -x usgs2sdf ]; then
53 if [ $1 == "fontdata" ] && [ $whoami == "root" ] && [ -x fontdata ]; then
57 if [ $1 == "all" ] && [ $whoami == "root" ]; then
58 if [ -x citydecoder ]; then
62 if [ -x srtm2sdf ]; then
66 if [ -x usgs2sdf ]; then
70 if [ -x fontdata ]; then
75 if [ $1 != "citydecoder" ] && [ $1 != "srtm2sdf" ] && [ $1 != "usgs2sdf" ] && [ $1 != "fontdata" ] && [ $1 != "all" ]; then
76 echo "Usage: install { citydecoder, srtm2sdf, usgs2sdf, fontdata, all }"