File: build

package info (click to toggle)
splat 1.2.1-2
  • links: PTS
  • area: main
  • in suites: lenny
  • size: 1,144 kB
  • ctags: 238
  • sloc: cpp: 6,260; ansic: 761; sh: 251; lisp: 244; makefile: 54
file content (41 lines) | stat: -rwxr-xr-x 706 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
#!/bin/bash
#
# Simple shell script for building SPLAT! and associated utilities.
# Written by John A. Magliacane, KD2BD May 2002 -- Last update: October 2007
#

build_splat()
{
	echo -n "Compiling SPLAT!... "
	g++ -Wall -O3 -fomit-frame-pointer -ffast-math itm.cpp splat.cpp -lm -lbz2 -o splat
	echo "Done!"
}

build_utils()
{
	cd utils
	./build all
	cd ..
}

if [ $# == "0" ]; then
	echo "Usage: build  { splat, utils, all }"
else

	if [ $1 == "splat" ]; then
		build_splat
	fi

	if [ $1 == "utils" ]; then
		build_utils
	fi

	if [ $1 == "all" ]; then
		build_splat
		build_utils
	fi

	if [ $1 != "splat" ] && [ $1 != "utils" ] && [ $1 != "all" ]; then
		echo "Usage: build { splat, utils, all }"
	fi
fi