aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2008-12-02 16:30:00 -0500
committerMike Frysinger <vapier@gentoo.org>2008-12-02 16:30:00 -0500
commit09ea1c5a9584558d6d172beed697cddf15afb761 (patch)
tree2898cd310a2e31020d09442cf51540f96bc3338f
parentcross-pkg-config: deduce /usr/$CHOST generically from $0 (diff)
downloadcrossdev-09ea1c5a9584558d6d172beed697cddf15afb761.tar.gz
crossdev-09ea1c5a9584558d6d172beed697cddf15afb761.tar.bz2
crossdev-09ea1c5a9584558d6d172beed697cddf15afb761.zip
crossdev: create target links automatically for wrapper scripts
Signed-off-by: Mike Frysinger <vapier@gentoo.org>
-rwxr-xr-xcrossdev8
1 files changed, 8 insertions, 0 deletions
diff --git a/crossdev b/crossdev
index a66d93e..44d7549 100755
--- a/crossdev
+++ b/crossdev
@@ -268,6 +268,7 @@ uninstall() {
done
rm -f /usr/${CTARGET}/{sys-include,usr}
rm -f /usr/bin/${CTARGET}-{gcc,{c,g}++,cpp,gfortran,gcov}
+ rm -f /usr/bin/${CTARGET}-{emerge,fix-root,pkg-config}
rmdir /usr/${CTARGET}/{include/asm,include} &> /dev/null
for d in /usr/${CTARGET} /usr/lib/gcc{,-lib}/${CTARGET} ; do
if [[ ! -d ${d} ]] ; then
@@ -562,6 +563,13 @@ set_portage ${LCAT} ${LPKG} ${LVER}
set_portage sys-devel gdb
set_portage dev-util insight
+#######################################
+### Create links for helper scripts ###
+
+for wrapper in emerge fix-root pkg-config ; do
+ ln -sf cross-${wrapper} /usr/bin/${CTARGET}-${wrapper}
+done
+
#################
emerged_with_use() {
local pkg=$1 use=$2