Skip to content

Instantly share code, notes, and snippets.

@b333z
Created May 19, 2013 04:13
Show Gist options
  • Save b333z/5606656 to your computer and use it in GitHub Desktop.
Save b333z/5606656 to your computer and use it in GitHub Desktop.
Switching source control details on 9999 gentoo ebuilds using /etc/portage/env
# cd /etc/portage/env
# find . -ls
1040459 4 drwxr-xr-x 4 root root 4096 May 17 20:57 .
1040460 4 drwxr-xr-x 2 root root 4096 May 17 21:00 ./sys-fs
1044487 4 -rw-r--r-- 1 root root 501 May 17 21:00 ./sys-fs/zfs
1044262 0 lrwxrwxrwx 1 root root 3 Oct 10 2012 ./sys-fs/zfs-kmod -> zfs
1043259 4 drwxr-xr-x 2 root root 4096 Jan 30 22:40 ./sys-kernel
1044264 4 -rw-r--r-- 1 root root 223 Sep 1 2012 ./sys-kernel/spl
# cat ./sys-fs/zfs-kmod # This allows me to jump around people's repos and branches
#!/bin/bash
pre_pkg_setup() {
#EGIT_REPO_URI="https://github.com/behlendorf/zfs.git"
#EGIT_BRANCH="snapshotfix2"
#EGIT_REPO_URI="https://github.com/b333z/zfs.git"
#EGIT_BRANCH="diff"
#EGIT_REPO_URI="https://github.com/behlendorf/zfs.git"
#EGIT_BRANCH="swap"
#EGIT_REPO_URI="https://github.com/dechamps/zfs.git"
#EGIT_BRANCH="trim-clean"
#EGIT_REPO_URI="https://github.com/nedbass/zfs.git"
#EGIT_BRANCH="issue816"
EGIT_REPO_URI="file:///zfs/zfs"
EGIT_BRANCH="issue-1461"
}
# cat ./sys-kernel/spl # I've commented all lines out to use the normal ebuild values
#!/bin/bash
#pre_pkg_setup() {
# EGIT_REPO_URI="https://github.com/b333z/spl.git"
# EGIT_REPO_URI="https://github.com/zfsonlinux/spl.git"
# EGIT_REPO_URI="https://github.com/behlendorf/spl.git"
# EGIT_BRANCH="swap"
#}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment