build.sh now builds with ffmpeg 0.6.1 and will show desktop notifications if they are supported

This commit is contained in:
Flameshadowxeroshin
2011-02-13 11:48:01 -06:00
parent 18e8c1b976
commit 1024e8fda0
+18 -3
View File
@@ -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