Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 76221 Details for
Bug 53674
PORTDIR_OVERLAY requires duplicating files from the original portage_dir
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
Small bash script to symlink files dir into an overlay
efiles (text/plain), 914 bytes, created by
Alec Warner
on 2006-01-05 01:58:05 UTC
(
hide
)
Description:
Small bash script to symlink files dir into an overlay
Filename:
MIME Type:
Creator:
Alec Warner
Created:
2006-01-05 01:58:05 UTC
Size:
914 bytes
patch
obsolete
>#!/bin/bash ># Written by Alec Warner 1/04/06 ># Small script to symlink files from a portage tree to an overlay dir. ># This should be run from the overlay, for example '/usr/local/portage/sys-test/testpkg/' > >if [[ ! -w `pwd` ]] ; then > echo "You must be able to write in the current directory!" > exit >fi > >CAT=$(dirname $(pwd) ) >CAT=${CAT##*/} >PACKAGE=$(basename $(pwd) ) >PORTDIR="$(portageq envvar PORTDIR)" > >if [[ ! -d "${PORTDIR}" || ! -n "${PWD}" ]] ; then > echo "PORTDIR or PWD are Invalid" > exit >fi > >LOCATION=${PORTDIR}/${CAT}/${PACKAGE} >echo "${LOCATION}" >if [[ -d "${LOCATION}" && -r "${LOCATION}" && -d "${LOCATION}/files" ]] ; then > DEST="files" > RUN="ln -s "${LOCATION}/${DEST}" ${DEST}" > if ! `RUN` ; then > ehco "Failed to symlink ${LOCATION}/${DEST} to ${DEST}" > exit > fi >else > echo "Found Category ${CAT} and Package ${PACKAGE} but could not find a files directory with Portdir ${PORTDIR}" > exit >fi
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Raw
Actions:
View
Attachments on
bug 53674
:
76221
|
76222
|
81596