2 # SCCSID @(#)install.in 4.8 95/09/24 GIE REL
4 # Installation script all PROJ.4 system reference files.
6 # This script must be executed after compilation of proj library.
12 # ------------------------------------------------------------
15 lib=${prefix}/lib/proj.4
16 # Copy in "init" files
17 for x in proj_def.dat nad27 nad83 world GL27
20 if [ $? -ne 0 ] ; then
21 echo "init copying failed for file $x"
23 echo "file $x installed"
26 # just test for conus and assume others are there
27 if [ -f conus.lla ] ; then
28 # install nad2nad NADCON files
29 echo "installing ${lib}/nad2783"
31 if [ ! -d $lib ] ; then
33 if [ $? -ne 0 ] ; then
34 echo "failed to make dir $lib"
35 echo "nad2nad lib install stopped"
39 # Process ascii grid into nad2nad compatible files.
41 dest=`expr $x : '\(.*\)\.lla'`
42 cat < $x | ../src/nad2bin ${lib}/${dest}
43 if [ $? -ne 0 ] ; then
44 echo "nad2nad file install failed on file ${lib}/${dest}"
47 echo "${lib}/${dest} installed"
50 echo "nad2nad NADCON files not present"
52 echo "normal completion"