File: install

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 (16 lines) | stat: -rwxr-xr-x 399 bytes parent folder | download | duplicates (5)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
#!/bin/bash
# Script to install moontracker
#
if [ ! -x $PWD/moontracker ]; then
	$PWD/build
fi
whoami=`whoami`
if [ ! -x /usr/local/bin/moontracker ]; 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 the 'install' script again."
	else
		ln -s $PWD/moontracker /usr/local/bin/moontracker
	fi
fi