File: build

package info (click to toggle)
predict 2.2.3-3.1
  • links: PTS
  • area: main
  • in suites: wheezy
  • size: 4,716 kB
  • sloc: ansic: 19,433; sh: 3,342; makefile: 428; yacc: 318; perl: 82
file content (24 lines) | stat: -rwxr-xr-x 798 bytes parent folder | download | duplicates (6)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
#!/bin/sh
# Script to compile and install 'map'
#
echo "Compiling 'map'.  If a compilation error occurs, please"
echo "edit the 'build' script according to the location of your"
echo "X11 and xforms libraries."
echo
#
# Select one of the following lines depending on your specific directory
# and include file paths.  The first line works fine under Slackware.
#
cc -Wall -O3 -s -o map map.c map_cb.c map_main.c -L/usr/X11R6/lib -lforms -lX11 -lm
#cc -Wall -O3 -s -o map map.c map_cb.c map_main.c -lforms -lX11 -lm
echo "Done!"
whoami=`whoami`
if [ ! -x /usr/local/bin/map ]; then
	if [ $whoami != "root" ]; then
		echo "Sorry, $whoami.  You need to be 'root' to install this program.  :-("
		echo "Please su to root and re-run this script again."
	else
		ln -s $PWD/map /usr/local/bin/map
	fi
fi