gnome-shell-build-setup.sh: install git-bz
Someone starting gnome-shell development work needs git-bz set up. Install it into the user account much like we install jhbuild. (Getting git-bz packaged into distributions would be better, but this improves thing easily.) https://bugzilla.gnome.org/show_bug.cgi?id=685354
This commit is contained in:
parent
7d9ec8cea0
commit
06e9bf9b0a
@ -246,22 +246,29 @@ if [ -d $SOURCE ] ; then : ; else
|
|||||||
echo "Created $SOURCE"
|
echo "Created $SOURCE"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [ -d $SOURCE/jhbuild ] ; then
|
checkout_git() {
|
||||||
if [ -d $SOURCE/jhbuild/.git ] ; then
|
module=$1
|
||||||
echo -n "Updating jhbuild ... "
|
source=$2
|
||||||
( cd $SOURCE/jhbuild && git pull --rebase > /dev/null ) || exit 1
|
|
||||||
|
if [ -d $SOURCE/$1 ] ; then
|
||||||
|
if [ -d $SOURCE/$1/.git ] ; then
|
||||||
|
echo -n "Updating $1 ... "
|
||||||
|
( cd $SOURCE/$1 && git pull --rebase > /dev/null ) || exit 1
|
||||||
echo "done"
|
echo "done"
|
||||||
else
|
else
|
||||||
echo "$SOURCE/jhbuild is not a git repository"
|
echo "$SOURCE/$1 is not a git repository"
|
||||||
echo "You should remove it and rerun this script"
|
echo "You should remove it and rerun this script"
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
else
|
else
|
||||||
echo -n "Checking out jhbuild into $SOURCE/jhbuild ... "
|
echo -n "Checking out $1 into $SOURCE/$1 ... "
|
||||||
cd $SOURCE
|
cd $SOURCE
|
||||||
git clone git://git.gnome.org/jhbuild > /dev/null || exit 1
|
git clone $2 > /dev/null || exit 1
|
||||||
echo "done"
|
echo "done"
|
||||||
fi
|
fi
|
||||||
|
}
|
||||||
|
|
||||||
|
checkout_git jhbuild git://git.gnome.org/jhbuild
|
||||||
|
|
||||||
echo -n "Installing jhbuild ... "
|
echo -n "Installing jhbuild ... "
|
||||||
(cd $SOURCE/jhbuild &&
|
(cd $SOURCE/jhbuild &&
|
||||||
@ -294,4 +301,17 @@ if test "x`echo $PATH | grep $HOME/bin`" = x; then
|
|||||||
echo
|
echo
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
checkout_git git-bz git://git.fishsoup.net/git-bz
|
||||||
|
|
||||||
|
|
||||||
|
echo -n "Installing git-bz ... "
|
||||||
|
old="`readlink $HOME/bin/git-bz`"
|
||||||
|
( cd $HOME/bin && ln -sf ../Source/git-bz/git-bz . )
|
||||||
|
new="`readlink $HOME/bin/git-bz`"
|
||||||
|
echo "done"
|
||||||
|
|
||||||
|
if test "$old" != "$new" ; then
|
||||||
|
echo "WARNING: $HOME/bin/git-bz was changed from '$old' to '$new'"
|
||||||
|
fi
|
||||||
|
|
||||||
echo "Done."
|
echo "Done."
|
||||||
|
Loading…
Reference in New Issue
Block a user