blob: 4f21abb3a793b3d462f3381da2d91295041b28bc (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
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
|