[server] / trunk / build / build-all Repository:
ViewVC logotype

View of /trunk/build/build-all

Parent Directory Parent Directory | Revision Log Revision Log


Revision 366 - (download) (annotate)
Tue Jul 21 12:21:58 2009 UTC (3 years, 10 months ago) by amartin
File size: 967 byte(s)
Allow for building branches and tags in the build scripts.
    1 #!/bin/sh
    2 # vim:ts=4:set nu:
    3 #
    4 # Build script for the Project DiaStar Server.
    5 #
    6 # Antony Martin  3-JUL-2009
    7 #
    8 # Fetch the latest source from subversion and build.
    9 # This creates a source tarball and source code documentation in html format.
   10 #
   11 
   12 #
   13 # Don't run this as root. Yes, that includes YOU!
   14 # Write warning to stderr.
   15 #
   16 
   17 SVN=svn://forssvn01.dialogic.com/woomera
   18 
   19 if [ "$(id -u)" == "0" ]; then
   20 	echo "This script must be run by a non-root user" 1>&2
   21 	exit 1
   22 fi
   23 
   24 #
   25 # process args:
   26 # $1 = trunk, tag, branch
   27 # $2 = the tag/branch identifier.
   28 #
   29 case $1 in
   30  branch)
   31 	SVN_URL=$SVN/branches/RB-$2
   32 	;;
   33  tag)
   34 	SVN_URL=$SVN/tags/REL-$2
   35 	;;
   36  trunk)
   37     SVN_URL=$SVN/trunk
   38 	;;
   39  *)
   40 	SVN_URL=$SVN/trunk
   41 esac
   42 
   43 if [ -n "$2" ]; then
   44     VERSION=$2
   45 else
   46     VERSION="trunk"
   47 fi
   48 
   49 cd ~
   50 
   51 ./build-server $SVN_URL $VERSION
   52 ./build-install-files $SVN_URL $VERSION
   53 ./build-extras $SVN_URL $VERSION
   54 ./build-rpm
   55 ./build-iso $SVN_URL $VERSION
   56 
   57 echo -e "\nBuild completed!"
   58 
   59 exit 0
   60 
   61 # EOF
   62 
   63 

No admin address has been configured
ViewVC Help
Powered by ViewVC 1.0.8