X-Git-Url: https://git.gag.com/?p=debian%2Fsplat;a=blobdiff_plain;f=utils%2Finstall;h=425770f195a97dcf483cc853ff21b989afa550aa;hp=78b7d1aba5d03010fc8423361a8a76f49f55109d;hb=cae76b32deb53ddbfb94b44de132a72435f56e88;hpb=996bd803ab22572b622b684221c9a8ca04b3f63a diff --git a/utils/install b/utils/install index 78b7d1a..425770f 100755 --- a/utils/install +++ b/utils/install @@ -1,7 +1,7 @@ #!/bin/bash # # Simple shell script for installing SPLAT! and associated utilities. -# Written by John A. Magliacane, KD2BD April 2002 +# Written by John A. Magliacane, KD2BD April 2002. Updated February 2006. # install_citydecoder() @@ -16,6 +16,12 @@ install_usgs2sdf() echo "usgs2sdf installed!" } +install_srtm2sdf() +{ + cp srtm2sdf /usr/local/bin + echo "srtm2sdf installed!" +} + install_fontdata() { cp fontdata /usr/local/bin @@ -29,13 +35,17 @@ if [ $whoami != "root" ]; then fi if [ $# == "0" ]; then - echo "Usage: ./install { citydecoder, usgs2sdf, fontdata, all }" + echo "Usage: ./install { citydecoder, srtm2sdf, usgs2sdf, fontdata, all }" else if [ $1 == "citydecoder" ] && [ $whoami == "root" ] && [ -x citydecoder ]; then install_citydecoder fi + if [ $1 == "srtm2sdf" ] && [ $whoami == "root" ] && [ -x srtm2sdf ]; then + install_srtm2sdf + fi + if [ $1 == "usgs2sdf" ] && [ $whoami == "root" ] && [ -x usgs2sdf ]; then install_usgs2sdf fi @@ -49,6 +59,10 @@ else install_citydecoder fi + if [ -x srtm2sdf ]; then + install_srtm2sdf + fi + if [ -x usgs2sdf ]; then install_usgs2sdf fi @@ -58,7 +72,8 @@ else fi fi - if [ $1 != "citydecoder" ] && [ $1 != "usgs2sdf" ] && [ $1 != "fontdata" ] && [ $1 != "all" ]; then - echo "Usage: install { citydecoder, usgs2sdf, fontdata, all }" + if [ $1 != "citydecoder" ] && [ $1 != "srtm2sdf" ] && [ $1 != "usgs2sdf" ] && [ $1 != "fontdata" ] && [ $1 != "all" ]; then + echo "Usage: install { citydecoder, srtm2sdf, usgs2sdf, fontdata, all }" fi fi +