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
This commit is contained in:
parent
9b89ba6270
commit
ee55d96190
@ -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."
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user