3 # Simple shell script for installing SPLAT! and associated utilities.
4 # Written by John A. Magliacane, KD2BD April 2002
9 cp citydecoder /usr/local/bin
10 echo "citydecoder installed!"
15 cp usgs2sdf /usr/local/bin
16 echo "usgs2sdf installed!"
21 cp fontdata /usr/local/bin
22 echo "fontdata installed!"
27 if [ $whoami != "root" ]; then
28 echo "Sorry, $whoami. You need to be 'root' to install this software. :-("
31 if [ $# == "0" ]; then
32 echo "Usage: ./install { citydecoder, usgs2sdf, fontdata, all }"
35 if [ $1 == "citydecoder" ] && [ $whoami == "root" ] && [ -x citydecoder ]; then
39 if [ $1 == "usgs2sdf" ] && [ $whoami == "root" ] && [ -x usgs2sdf ]; then
43 if [ $1 == "fontdata" ] && [ $whoami == "root" ] && [ -x fontdata ]; then
47 if [ $1 == "all" ] && [ $whoami == "root" ]; then
48 if [ -x citydecoder ]; then
52 if [ -x usgs2sdf ]; then
56 if [ -x fontdata ]; then
61 if [ $1 != "citydecoder" ] && [ $1 != "usgs2sdf" ] && [ $1 != "fontdata" ] && [ $1 != "all" ]; then
62 echo "Usage: install { citydecoder, usgs2sdf, fontdata, all }"