From ee55d96190f85e9b2e1f69e1cc21b946267aaf57 Mon Sep 17 00:00:00 2001 From: Owen Taylor Date: Tue, 27 Jan 2009 16:55:39 +0000 Subject: [PATCH] Improve gnome-shell-build-setup.sh for Fedora - If lsb_release binary isn't present, look for /etc/fedora-release - Check for required packages for Fedora and invoke gpk-install-package-name Patch from Mads Villadsen. svn path=/trunk/; revision=165 --- tools/build/gnome-shell-build-setup.sh | 21 ++++++++++++++++++++- 1 file changed, 20 insertions(+), 1 deletion(-) diff --git a/tools/build/gnome-shell-build-setup.sh b/tools/build/gnome-shell-build-setup.sh index 3f1aff25d..34aaa12a7 100755 --- a/tools/build/gnome-shell-build-setup.sh +++ b/tools/build/gnome-shell-build-setup.sh @@ -47,7 +47,12 @@ if test "x`echo $PATH | grep $HOME/bin`" = x; then echo fi -system=`lsb_release -is` +if which lsb_release > /dev/null 2>&1; then + system=`lsb_release -is` +elif [ -f /etc/fedora-release ] ; then + system=Fedora +fi + if test x$system = xUbuntu -o x$system = xDebian ; then reqd="" for pkg in build-essential automake gnome-common flex bison curl \ @@ -64,5 +69,19 @@ if test x$system = xUbuntu -o x$system = xDebian ; then fi fi +if test x$system = xFedora ; then + reqd="" + for pkg in libffi-devel libXdamage-devel gnome-doc-utils xulrunner-devel \ + librsvg2-devel libgnomeui-devel xterm xorg-x11-apps xorg-x11-server-Xephyr \ + libwnck-devel; do + if ! rpm -q $pkg > /dev/null 2>&1; then + reqd="$pkg $reqd" + fi + done + if test ! "x$reqd" = x; then + gpk-install-package-name $reqd + fi +fi + echo "Done."