Imported Debian patch 1.2.1-1
[debian/splat] / build
1 #!/bin/bash
2 #
3 # Simple shell script for building SPLAT! and associated utilities.
4 # Written by John A. Magliacane, KD2BD May 2002 -- Last update: October 2007
5 #
6
7 build_splat()
8 {
9         echo -n "Compiling SPLAT!... "
10         g++ -Wall -O3 -fomit-frame-pointer -ffast-math itm.cpp splat.cpp -lm -lbz2 -o splat
11         echo "Done!"
12 }
13
14 build_utils()
15 {
16         cd utils
17         ./build all
18         cd ..
19 }
20
21 if [ $# == "0" ]; then
22         echo "Usage: build  { splat, utils, all }"
23 else
24
25         if [ $1 == "splat" ]; then
26                 build_splat
27         fi
28
29         if [ $1 == "utils" ]; then
30                 build_utils
31         fi
32
33         if [ $1 == "all" ]; then
34                 build_splat
35                 build_utils
36         fi
37
38         if [ $1 != "splat" ] && [ $1 != "utils" ] && [ $1 != "all" ]; then
39                 echo "Usage: build { splat, utils, all }"
40         fi
41 fi