File: install.in

package info (click to toggle)
proj 4.3.3-1
  • links: PTS
  • area: main
  • in suites: potato
  • size: 920 kB
  • ctags: 1,335
  • sloc: ansic: 9,295; makefile: 140
file content (47 lines) | stat: -rwxr-xr-x 915 bytes parent folder | download
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
:
# First time install script
# @(#)install.in	4.3 94/05/22 GIE REL"
prefix=/usr/local
if [ ! -w $prefix ] ; then
	echo "$prefix must exist and be writable"
	exit 1
fi
# check if destination directories available and if not make
for x in bin lib lib/proj.4 include man man/man1 man/man3
do
	if [ ! -d ${prefix}/$x ] ; then
		mkdir ${prefix}/$x
		if [ $? -ne 0 ] ; then
			echo "failed to make directory ${prefix}/$x"
			echo "install stopped"
			exit 1
		fi
	fi
done
# proceed to make software
cd src
make install
if [ $? -ne 0 ] ; then
	echo "make failed, install stopped"
	exit 1
fi
# install man files
cd ../man/man1
echo "installing man.1 files"
for x in *
do
	cp $x ${prefix}/man/man1/$x
done
cd ../man3
echo "installing man.3 files"
for x in *
do
	cp $x ${prefix}/man/man3/$x
done
# install reference files
cd ../../nad
sh install
if [ $? -ne 0 ] ; then
	echo "Installation of proj system complete"
fi
exit 0