From 1024e8fda027394cff9994fb368b97a486942490 Mon Sep 17 00:00:00 2001 From: Flameshadowxeroshin Date: Sun, 13 Feb 2011 11:48:01 -0600 Subject: [PATCH] build.sh now builds with ffmpeg 0.6.1 and will show desktop notifications if they are supported --- Utils/build.sh | 21 ++++++++++++++++++--- 1 file changed, 18 insertions(+), 3 deletions(-) diff --git a/Utils/build.sh b/Utils/build.sh index f896306a91..a670f1a799 100755 --- a/Utils/build.sh +++ b/Utils/build.sh @@ -2,6 +2,12 @@ verbose=0 msg= +notify=0 +if which notify-send >/dev/null 2>&1; then + #Comment the following line out to disable notify. + notify=1 +fi + message () { msg=$1 if [ $verbose -gt 0 ]; then @@ -9,6 +15,9 @@ message () { else echo -n "$msg..." fi + if [ $notify -gt 0 ]; then + notify-send "sm-ssc build script" "$msg..." + fi } success () { @@ -17,6 +26,9 @@ success () { else echo okay. fi + if [ $notify -gt 0 ]; then + notify send "sm-ssc build script" "$msg...okay." + fi } failure () { @@ -30,6 +42,9 @@ failure () { else echo failed$error fi + if [ $notify -gt 0 ]; then + notify-send "sm-ssc build script failed" "$msg...failed$error" + fi; echo "Consider passing --verbose to $0. Pass --help for details." exit 1 } @@ -64,10 +79,10 @@ usage () { } version () { - echo 'build.sh (StepMania) 2.61a' + echo 'build.sh (StepMania) 2.62' echo 'Copyright (C) 2006-2009 Steve Checkoway' echo 'StepMania is Copyright (C) 2001-2009 Chris Danford et al.' - echo 'sm-ssc is Copyright (C) 2009-2010 the spinal shark collective' + echo 'sm-ssc is Copyright (C) 2009-2011 the spinal shark collective' exit 0 } @@ -103,7 +118,7 @@ while [ $# -gt 0 ]; do *) usage 1 ;; esac done -version=0.6 +version=0.6.1 ffmpeg=ffmpeg-$version directory=http://ffmpeg.org/releases if [ ! -d $ffmpeg ]; then