build.sh now builds with ffmpeg 0.6.1 and will show desktop notifications if they are supported
This commit is contained in:
+18
-3
@@ -2,6 +2,12 @@
|
|||||||
|
|
||||||
verbose=0
|
verbose=0
|
||||||
msg=
|
msg=
|
||||||
|
notify=0
|
||||||
|
if which notify-send >/dev/null 2>&1; then
|
||||||
|
#Comment the following line out to disable notify.
|
||||||
|
notify=1
|
||||||
|
fi
|
||||||
|
|
||||||
message () {
|
message () {
|
||||||
msg=$1
|
msg=$1
|
||||||
if [ $verbose -gt 0 ]; then
|
if [ $verbose -gt 0 ]; then
|
||||||
@@ -9,6 +15,9 @@ message () {
|
|||||||
else
|
else
|
||||||
echo -n "$msg..."
|
echo -n "$msg..."
|
||||||
fi
|
fi
|
||||||
|
if [ $notify -gt 0 ]; then
|
||||||
|
notify-send "sm-ssc build script" "$msg..."
|
||||||
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
success () {
|
success () {
|
||||||
@@ -17,6 +26,9 @@ success () {
|
|||||||
else
|
else
|
||||||
echo okay.
|
echo okay.
|
||||||
fi
|
fi
|
||||||
|
if [ $notify -gt 0 ]; then
|
||||||
|
notify send "sm-ssc build script" "$msg...okay."
|
||||||
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
failure () {
|
failure () {
|
||||||
@@ -30,6 +42,9 @@ failure () {
|
|||||||
else
|
else
|
||||||
echo failed$error
|
echo failed$error
|
||||||
fi
|
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."
|
echo "Consider passing --verbose to $0. Pass --help for details."
|
||||||
exit 1
|
exit 1
|
||||||
}
|
}
|
||||||
@@ -64,10 +79,10 @@ usage () {
|
|||||||
}
|
}
|
||||||
|
|
||||||
version () {
|
version () {
|
||||||
echo 'build.sh (StepMania) 2.61a'
|
echo 'build.sh (StepMania) 2.62'
|
||||||
echo 'Copyright (C) 2006-2009 Steve Checkoway'
|
echo 'Copyright (C) 2006-2009 Steve Checkoway'
|
||||||
echo 'StepMania is Copyright (C) 2001-2009 Chris Danford et al.'
|
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
|
exit 0
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -103,7 +118,7 @@ while [ $# -gt 0 ]; do
|
|||||||
*) usage 1 ;;
|
*) usage 1 ;;
|
||||||
esac
|
esac
|
||||||
done
|
done
|
||||||
version=0.6
|
version=0.6.1
|
||||||
ffmpeg=ffmpeg-$version
|
ffmpeg=ffmpeg-$version
|
||||||
directory=http://ffmpeg.org/releases
|
directory=http://ffmpeg.org/releases
|
||||||
if [ ! -d $ffmpeg ]; then
|
if [ ! -d $ffmpeg ]; then
|
||||||
|
|||||||
Reference in New Issue
Block a user