diff options
author | BlackNoxis <steven.darklight@gmail.com> | 2014-12-03 03:20:49 +0200 |
---|---|---|
committer | BlackNoxis <steven.darklight@gmail.com> | 2014-12-03 03:20:49 +0200 |
commit | 58ae5bbf25835bd30fa385275ff4486dbc31f0a2 (patch) | |
tree | 3a68352e09b5cce3a8a33a7eef956e9d254d126e /bin/bump_misc |
Making public our Kogaion bin
Diffstat (limited to 'bin/bump_misc')
-rwxr-xr-x | bin/bump_misc | 60 |
1 files changed, 60 insertions, 0 deletions
diff --git a/bin/bump_misc b/bin/bump_misc new file mode 100755 index 0000000..837cdb7 --- /dev/null +++ b/bin/bump_misc @@ -0,0 +1,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 |