#!/bin/sh #Set Env Variables mythdir="/root/mythsrc/" export QTDIR=/usr/lib/qt3 export PATH=$PATH:/usr/lib/qt3/bin help() { cat < /dev/null fi else echo " cvs update -d -A" if [ -n "$opt_verbose" ] then cvs update -d -A else cvs -Q update -d -A > /dev/null fi fi fi if [ ! -n "$opt_noClean" ] then echo " make clean" if [ -n "$opt_verbose" ] then make clean else make -s clean > /dev/null fi echo " make distclean" if [ -n "$opt_verbose" ] then make distclean else make -s distclean > /dev/null fi fi echo " qmake" if [ -n "$opt_verbose" ] then qmake else qmake > /dev/null fi echo " make" if [ -n "$opt_verbose" ] then make else make -s > /dev/null fi if [ ! -n "$opt_noInstall" ] then echo " make install" if [ -n "$opt_verbose" ] then make install else make -s install > /dev/null fi fi } while [ -n "$1" ]; do case $1 in -h) help; shift 1;; # function help is called -d) opt_cvsDate=$2; echo $opt_cvsDate; shift 2;; -nd) opt_noClean=1; shift 1;; -nc) opt_noCVS=1; shift 1;; -s) opt_mythDir=$2; shift 2;; -ni) opt_noInstall=1; shift 1;; -v) opt_verbose=1; shift 1;; -*) echo "Error: no such option $1."; help;; *) break;; esac done if [ `/bin/ps -eo "%c" | /bin/grep ismythup | /usr/bin/wc -l` -gt 0 ] then killall ismythup fi if [ -n "$opt_mythDir" ] then mythdir="$opt_mythDir/" fi mythtv="mythtv" echo "Starting Build" echo "$mythtv" cd $mythdir$mythtv build_program for i in `ls $mythdir` do if [ -d "$mythdir$i" ] then if [ "$i" != "mythtv" ] then echo "$i" cd "$mythdir$i" build_program fi fi done shutdown -r now