summaryrefslogtreecommitdiff
path: root/bin/bump_misc
blob: 837cdb7fae0b21ee4424a1e3565c91d999a6ab85 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
#!/bin/sh

# script that makes it easier to bump split packages
# (and perhaps other fun stuff)

. /kogaion/bin/buildrc || exit 2

list="git [sub]version [tra]nsmission"
cmd="emerge -av"
default_overlay="kogaion-desktop"
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}

what=$1

if [ -z "$what" ]; then
	echo "What to compile? [ $list ]"
	read what
fi

case $what in
git)
	$cmd \
		dev-vcs/git::"$overlay" \
		dev-vcs/git-cvs \
		dev-vcs/git-gui-tools \
		dev-vcs/git-subversion \
		www-apps/gitweb
	;;
subversion|sub)
	$cmd \
		dev-vcs/subversion::"$overlay" \
		dev-vcs/subversion-java \
		www-apache/mod_dav_svn
	;;
transmission|tra)
	$cmd \
		net-p2p/transmission-base \
		net-p2p/transmission-cli \
		net-p2p/transmission-daemon \
		net-p2p/transmission-gtk \
		net-p2p/transmission-qt4 \
		net-p2p/transmission::"$overlay"
	;;
*)
	echo "Excuse me, but I non capisco." >&2
	echo "Use --repo <repository> to use different overlay (default: $default_overlay)." >&2
	[ -n "$1" ] && echo "Run without any parameter for interactive use." >&2
	exit 1
esac