rudimentary java library beginning. cleaned up scripts quite
[feisty_meow.git] / scripts / buildor / stdbuild.sh
1 #!/bin/bash
2 # stdbuild: a build script that applies to most unix make based builds
3 # for things that you trust enough to install.  this does the configure
4 # phase, then makes the project, then installs it.
5 #
6 # go to the main folder of the project you're building before you run this.
7
8 echo "$(date_stringer)"
9 echo "Building application from $(\pwd)"
10 echo "    via standard 'configure;make;sudo make install' process..."
11 echo ""
12
13 echo "Running configure script..."
14 ./configure
15 if [ $? != 0 ]; then
16   echo "Something went wrong during 'configure'."
17   exit 1
18 fi
19
20 echo "Calling make..."
21 make
22 if [ $? != 0 ]; then
23   echo "Something went wrong during 'make'."
24   exit 1
25 fi
26
27 echo "About to install application as root..."
28 echo "sudo password needed to install from $(\pwd):"
29 sudo make install
30 if [ $? != 0 ]; then
31   echo "Saw a failure to su or to install application."
32 fi
33
34 echo "Finished building in $(\pwd)."
35 echo "$(date_stringer)"
36