aboutsummaryrefslogtreecommitdiff
path: root/nad/install
diff options
context:
space:
mode:
authorFrank Warmerdam <warmerdam@pobox.com>1999-03-18 16:34:52 +0000
committerFrank Warmerdam <warmerdam@pobox.com>1999-03-18 16:34:52 +0000
commit565a4bd035b9d4a83955808efef20f1d8dfa24cf (patch)
tree75785fc897708023f1ccdaf40079afcbaaf0fd3a /nad/install
downloadPROJ-565a4bd035b9d4a83955808efef20f1d8dfa24cf.tar.gz
PROJ-565a4bd035b9d4a83955808efef20f1d8dfa24cf.zip
New
git-svn-id: http://svn.osgeo.org/metacrs/proj/trunk@776 4e78687f-474d-0410-85f9-8d5e500ac6b2
Diffstat (limited to 'nad/install')
-rw-r--r--nad/install54
1 files changed, 54 insertions, 0 deletions
diff --git a/nad/install b/nad/install
new file mode 100644
index 00000000..4f21abb3
--- /dev/null
+++ b/nad/install
@@ -0,0 +1,54 @@
+# Generated automatically from install.in by configure.
+:
+# SCCSID @(#)install.in 4.8 95/09/24 GIE REL
+#
+# Installation script all PROJ.4 system reference files.
+#
+# This script must be executed after compilation of proj library.
+#
+# Execute as:
+#
+# install
+#
+# ------------------------------------------------------------
+prefix=/usr/local
+#
+lib=${prefix}/lib/proj.4
+# Copy in "init" files
+for x in proj_def.dat nad27 nad83 world GL27
+do
+ cp $x ${lib}/$x
+ if [ $? -ne 0 ] ; then
+ echo "init copying failed for file $x"
+ else
+ echo "file $x installed"
+ fi
+done
+# just test for conus and assume others are there
+if [ -f conus.lla ] ; then
+# install nad2nad NADCON files
+ echo "installing ${lib}/nad2783"
+ lib=${lib}/nad2783
+ if [ ! -d $lib ] ; then
+ mkdir $lib
+ if [ $? -ne 0 ] ; then
+ echo "failed to make dir $lib"
+ echo "nad2nad lib install stopped"
+ exit 1
+ fi
+ fi
+# Process ascii grid into nad2nad compatible files.
+ for x in *.lla ; do
+ dest=`expr $x : '\(.*\)\.lla'`
+ cat < $x | ../src/nad2bin ${lib}/${dest}
+ if [ $? -ne 0 ] ; then
+ echo "nad2nad file install failed on file ${lib}/${dest}"
+ exit 1
+ fi
+ echo "${lib}/${dest} installed"
+ done
+else
+ echo "nad2nad NADCON files not present"
+fi
+echo "normal completion"
+exit 0