File: build

package info (click to toggle)
splat 1.1.1-2
  • links: PTS
  • area: main
  • in suites: etch, etch-m68k
  • size: 536 kB
  • ctags: 207
  • sloc: cpp: 4,594; ansic: 697; sh: 243; makefile: 43
file content (42 lines) | stat: -rwxr-xr-x 696 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
#!/bin/bash
#
# Simple shell script for building SPLAT! and associated utilities.
# Written by John A. Magliacane, KD2BD May 2002 -- Last update: March 2006
#

build_splat()
{
	echo -n "Compiling SPLAT!... "
	g++ -Wall -O3 -s -lm -lbz2 -fomit-frame-pointer itm.cpp splat.cpp -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