1 |
commit: bce7e2f98c548753c680a37e581fe907515a4f77 |
2 |
Author: Mike Frysinger <vapier <AT> gentoo <DOT> org> |
3 |
AuthorDate: Tue May 29 20:33:31 2012 +0000 |
4 |
Commit: Mike Frysinger <vapier <AT> gentoo <DOT> org> |
5 |
CommitDate: Tue May 29 20:33:31 2012 +0000 |
6 |
URL: http://git.overlays.gentoo.org/gitweb/?p=proj/crossdev.git;a=commit;h=bce7e2f9 |
7 |
|
8 |
crossdev: add an --env flag for common env settings |
9 |
|
10 |
Some env settings people want to specify for all the packages, so add |
11 |
a new --env flag so people don't have to copy & paste the same value |
12 |
to multiple flags (which might change over time). |
13 |
|
14 |
Signed-off-by: Mike Frysinger <vapier <AT> gentoo.org> |
15 |
|
16 |
--- |
17 |
crossdev | 4 ++++ |
18 |
1 files changed, 4 insertions(+), 0 deletions(-) |
19 |
|
20 |
diff --git a/crossdev b/crossdev |
21 |
index acd6bf2..2b491bc 100755 |
22 |
--- a/crossdev |
23 |
+++ b/crossdev |
24 |
@@ -47,6 +47,7 @@ Options: |
25 |
Note: versions support depend atom syntaxes: |
26 |
e.g. ">=2.20" "~4.6.1" "=2.13.1-r3" |
27 |
${GOOD}-A, --abis${NORMAL} abis Specify ABIs to build, first one is the default |
28 |
+ ${GOOD}--env${NORMAL} env Specify env settings for all packages (see below) |
29 |
${GOOD}--[bdgkl]env${NORMAL} env Specify env settings for binutils/gdb/gcc/kernel/libc |
30 |
Note: make sure to quote: 'VAR="some value"\nFOO="cow"' |
31 |
${GOOD}-f, --force${NORMAL} I don't need a seat belt! |
32 |
@@ -457,6 +458,7 @@ CTARGET= |
33 |
MULTILIB_ABIS="default" |
34 |
MULTILIB_USE="" |
35 |
STAGE="" |
36 |
+AENV="" |
37 |
BCAT="sys-devel" ; BPKG="binutils" ; BVER="" BUSE="" BENV="" BOVL="" |
38 |
GCAT="sys-devel" ; GPKG="gcc" ; GVER="" GUSE="" GENV="" GOVL="" |
39 |
KCAT="sys-kernel" ; KPKG="linux-headers" ; KVER="" KUSE="" KENV="" KOVL="" |
40 |
@@ -500,6 +502,7 @@ while [[ $# -gt 0 ]] ; do |
41 |
--l|--libc) shift; LVER=$1;; |
42 |
--lenv) shift; LENV=$1;; |
43 |
-ol|--ov-libc) shift; LOVL=$1;; |
44 |
+ --env) shift; AENV=$1;; |
45 |
-A|--abis) shift; MULTILIB_ABIS=$1;; |
46 |
-S|--stable) DEFAULT_VER="[stable]";; |
47 |
-C|--clean) shift; parse_target $1; uninstall;; |
48 |
@@ -805,6 +808,7 @@ set_env() { |
49 |
SYMLINK_LIB=no |
50 |
COLLISION_IGNORE="\${COLLISION_IGNORE} /usr/lib/debug/.build-id" |
51 |
$(printf '%b' "${env}") |
52 |
+ $(printf '%b' "${AENV}") |
53 |
EOF |
54 |
|
55 |
local v |