]> gerrit.simantics Code Review - simantics/district.git/blob - org.simantics.maps.server/server/dist/share/proj/install.in
Adding pkg-precompiled tileserver-mapnik to avoid npm install
[simantics/district.git] / org.simantics.maps.server / server / dist / share / proj / install.in
1 :
2 # SCCSID @(#)install.in 4.8 95/09/24 GIE REL
3 #
4 # Installation script all PROJ.4 system reference files.
5 #
6 # This script must be executed after compilation of proj library.
7 #
8 # Execute as:
9 #
10 #       install
11 #
12 # ------------------------------------------------------------
13 prefix=/usr/local
14 #
15 lib=${prefix}/lib/proj.4
16 # Copy in "init" files
17 for x in proj_def.dat nad27 nad83 world GL27
18 do
19         cp $x ${lib}/$x
20         if [ $? -ne 0 ] ; then
21                 echo "init copying failed for file $x"
22         else
23                 echo "file $x installed"
24         fi
25 done
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"
30         lib=${lib}/nad2783
31         if [ ! -d $lib ] ; then
32                 mkdir $lib
33                 if [ $? -ne 0 ] ; then
34                         echo "failed to make dir $lib"
35                         echo "nad2nad lib install stopped"
36                         exit 1
37                 fi
38         fi
39 # Process ascii grid into nad2nad compatible files.
40         for x in *.lla ; do
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}"
45                         exit 1
46                 fi
47                 echo "${lib}/${dest} installed"
48         done
49 else
50         echo "nad2nad NADCON files not present"
51 fi
52 echo "normal completion"
53 exit 0