2012-10-01 15:00:20 +02:00
|
|
|
#!/bin/sh
|
|
|
|
|
|
|
|
# script that makes it easier to bump split packages
|
|
|
|
# (and perhaps other fun stuff)
|
|
|
|
|
2014-11-02 09:42:47 +01:00
|
|
|
. /sabayon/bin/buildrc || exit 2
|
|
|
|
|
|
|
|
list="git [sub]version [tra]nsmission"
|
2012-10-01 15:00:20 +02:00
|
|
|
cmd="emerge -av"
|
2014-11-02 09:42:47 +01:00
|
|
|
default_overlay="sabayon-distro"
|
|
|
|
overlay=
|
|
|
|
|
|
|
|
if [ "$1" = "--repo" ]; then
|
|
|
|
overlay=$2
|
|
|
|
if [ -z "$overlay" ]; then
|
|
|
|
echo "--repo requires an argument" >&2
|
|
|
|
exit 1
|
|
|
|
fi
|
|
|
|
shift; shift
|
|
|
|
fi
|
|
|
|
|
|
|
|
overlay=${overlay:-$default_overlay}
|
2012-10-01 15:00:20 +02:00
|
|
|
|
|
|
|
what=$1
|
|
|
|
|
|
|
|
if [ -z "$what" ]; then
|
2014-11-02 09:42:47 +01:00
|
|
|
echo "What to compile? [ $list ]"
|
2012-10-01 15:00:20 +02:00
|
|
|
read what
|
|
|
|
fi
|
|
|
|
|
|
|
|
case $what in
|
|
|
|
git)
|
|
|
|
$cmd \
|
2014-11-02 09:42:47 +01:00
|
|
|
dev-vcs/git::"$overlay" \
|
2012-10-01 15:00:20 +02:00
|
|
|
dev-vcs/git-cvs \
|
|
|
|
dev-vcs/git-gui-tools \
|
|
|
|
dev-vcs/git-subversion \
|
|
|
|
www-apps/gitweb
|
|
|
|
;;
|
2014-11-02 09:42:47 +01:00
|
|
|
subversion|sub)
|
2012-10-01 15:00:20 +02:00
|
|
|
$cmd \
|
2014-11-02 09:42:47 +01:00
|
|
|
dev-vcs/subversion::"$overlay" \
|
|
|
|
dev-vcs/subversion-java \
|
|
|
|
www-apache/mod_dav_svn
|
2012-10-01 15:00:20 +02:00
|
|
|
;;
|
2014-11-02 09:42:47 +01:00
|
|
|
transmission|tra)
|
2012-10-01 15:00:20 +02:00
|
|
|
$cmd \
|
|
|
|
net-p2p/transmission-base \
|
|
|
|
net-p2p/transmission-cli \
|
|
|
|
net-p2p/transmission-daemon \
|
|
|
|
net-p2p/transmission-gtk \
|
|
|
|
net-p2p/transmission-qt4 \
|
2014-11-02 09:42:47 +01:00
|
|
|
net-p2p/transmission::"$overlay"
|
2012-10-01 15:00:20 +02:00
|
|
|
;;
|
|
|
|
*)
|
|
|
|
echo "Excuse me, but I non capisco." >&2
|
2014-11-02 09:42:47 +01:00
|
|
|
echo "Use --repo <repository> to use different overlay (default: $default_overlay)." >&2
|
2012-10-01 15:00:20 +02:00
|
|
|
[ -n "$1" ] && echo "Run without any parameter for interactive use." >&2
|
|
|
|
exit 1
|
|
|
|
esac
|