Skip to content

Instantly share code, notes, and snippets.

@palacaze
Last active December 21, 2015 14:55
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save palacaze/a6e5b06550788e1a47ad to your computer and use it in GitHub Desktop.
Save palacaze/a6e5b06550788e1a47ad to your computer and use it in GitHub Desktop.
emerge packages with gentoo as a user in any dir
#!/usr/bin/env sh
# destination directory
DIR=/home/pal/code/deps/clang
# clang as default compiler
CC=clang CXX=clang++ \
PORTAGE_TMPDIR=$DIR/var/tmp \
EMERGE_LOGDIR=$DIR/var/log \
PORT_LOGDIR=$DIR/var/log/portage \
exec emerge --root=$DIR --root-deps=rdeps $*
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment