first check-in of feisty meow codebase. many things broken still due to recent
[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 source $SHELLDIR/core/date_stringer.sh
9
10 echo "$(date_stringer)"
11 echo "Building application from $(\pwd)"
12 echo "    via standard 'configure;make;sudo make install' process..."
13 echo ""
14
15 echo "Running configure script..."
16 ./configure
17 if [ $? != 0 ]; then
18   echo "Something went wrong during 'configure'."
19   exit 1
20 fi
21
22 echo "Calling make..."
23 make
24 if [ $? != 0 ]; then
25   echo "Something went wrong during 'make'."
26   exit 1
27 fi
28
29 echo "About to install application as root..."
30 echo "sudo password needed to install from $(\pwd):"
31 sudo make install
32 if [ $? != 0 ]; then
33   echo "Saw a failure to su or to install application."
34 fi
35
36 echo "Finished building in $(\pwd)."
37 echo "$(date_stringer)"
38