scripts: create-uninstalled-setup: miscellaneous fixes

Error out if required build tools (flex, bison, pkg-config)
are not present, instead of printing a message and then
continuing.

Check out submodules when fetching the repositories, so
they're already there and ready later.

Remove some 0.10 cruft.
This commit is contained in:
Tim-Philipp Müller 2015-04-22 10:14:53 +01:00
parent e198d1df05
commit ef852398a2

View file

@ -8,7 +8,7 @@
# #
# ---------------------------------------------------------------------------- # ----------------------------------------------------------------------------
# #
# Copyright (C) 2011-2012 Tim-Philipp Muller <tim centricular net> # Copyright (C) 2011-2015 Tim-Philipp Müller <tim centricular net>
# #
# This script is free software; you can redistribute it and/or # This script is free software; you can redistribute it and/or
# modify it under the terms of the GNU Library General Public # modify it under the terms of the GNU Library General Public
@ -40,13 +40,7 @@ GIT_ACCESS="anongit"
REUSE_EXISTING_MASTER_CHECKOUT="true" REUSE_EXISTING_MASTER_CHECKOUT="true"
# git modules to clone # git modules to clone
MODULES="gstreamer gst-plugins-base gst-plugins-good gst-plugins-ugly gst-plugins-bad" MODULES="gstreamer gst-plugins-base gst-plugins-good gst-plugins-ugly gst-plugins-bad gst-libav"
if test "$BRANCH" != "0.10"; then
MODULES="$MODULES gst-libav"
else
MODULES="$MODULES gst-ffmpeg"
fi
# note: we use ~/gst because that's what the gst-uninstalled script # note: we use ~/gst because that's what the gst-uninstalled script
# uses by default, so don't just change that to something else # uses by default, so don't just change that to something else
@ -83,17 +77,22 @@ echo "==========================================================================
echo "" echo ""
echo " Some very basic build tools or dependencies are missing." echo " Some very basic build tools or dependencies are missing."
echo "" echo ""
echo " Please visit" echo " Please install the following tools: pkg-config, bison, flex"
echo ""
echo " http://gstreamer.freedesktop.org/wiki/BuildDependenciesDebianUbuntu"
echo "" echo ""
echo " and the following libraries: GLib (libglib2.0-dev or glib2-devel)"
echo " and Orc (liborc-0.4-dev or orc-devel)"
#echo " Please visit"
#echo ""
#echo " http://gstreamer.freedesktop.org/wiki/BuildDependenciesDebianUbuntu"
#echo ""
#echo " or" #echo " or"
#echo "" #echo ""
#echo " http://gstreamer.freedesktop.org/wiki/Fedora" #echo " http://gstreamer.freedesktop.org/wiki/Fedora"
#echo "" #echo ""
echo " for instructions how to install them on Debian/Ubuntu-based systems." #echo " for instructions how to install them on Debian/Ubuntu-based systems."
echo "" echo ""
echo "===========================================================================================" echo "==========================================================================================="
exit 1
fi fi
@ -118,6 +117,7 @@ do
if test "$BRANCH" != "master"; then if test "$BRANCH" != "master"; then
git checkout -b $BRANCH origin/$BRANCH git checkout -b $BRANCH origin/$BRANCH
fi fi
git submodule init && git submodule update
cd .. cd ..
done done