-
-
Save palacaze/a6e5b06550788e1a47ad to your computer and use it in GitHub Desktop.
emerge packages with gentoo as a user in any dir
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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