projects
/
stuff.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
6853432
)
added distcc-toolchain-version
stuff
author
Ralphred
<Ralphred@liquid.me.uk>
Fri, 25 Oct 2024 23:01:35 +0000
(
00:01
+0100)
committer
Ralphred
<Ralphred@liquid.me.uk>
Fri, 25 Oct 2024 23:01:35 +0000
(
00:01
+0100)
distcc-toolchain-version
[new file with mode: 0755]
patch
|
blob
diff --git a/distcc-toolchain-version
b/distcc-toolchain-version
new file mode 100755
(executable)
index 0000000..
f197187
--- /dev/null
+++ b/
distcc-toolchain-version
@@ -0,0
+1,6
@@
+#!/bin/bash
+BINUTILS_VER=$(qatom -F '%{PV}' $(qfile -v $(realpath /usr/bin/ld) | cut -d' ' -f1))
+GCC_VER=$(qatom -F '%{PV}' $(qfile -v $(realpath /usr/bin/gcc) | cut -d' ' -f1))
+KERNEL_VER=$(qatom -F '%{PV}' $(qlist -Ive sys-kernel/linux-headers))
+LIBC_VER=$(qatom -F '%{PV}' $(qlist -Ive sys-libs/glibc))
+echo "crossdev --b '~${BINUTILS_VER}' --g '~${GCC_VER}' --k '~${KERNEL_VER}' --l '~${LIBC_VER}' -t $(portageq envvar CHOST)"