Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 321242 Details for
Bug 431104
sys-devel/{gcc,binutils}-config - ROOT variable should not default to ${PWD}${ROOT} for given relative paths
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
script to fix missing slashes en-masse
fix-missing-slash.sh (text/plain), 820 bytes, created by
Greg Turner
on 2012-08-13 20:48:56 UTC
(
hide
)
Description:
script to fix missing slashes en-masse
Filename:
MIME Type:
Creator:
Greg Turner
Created:
2012-08-13 20:48:56 UTC
Size:
820 bytes
patch
obsolete
>#!/bin/bash > >fix-missing-slashes() { > for f in "$@" ; do > if [[ -f "$f" ]] ; then > grep -q '${PWD}${ROOT}' "${f}" || { echo -n "${f}[OK] " ; continue ; } > sed -e 's|\${PWD}\${ROOT}|${PWD}/${ROOT}|g' "${f}" -i > echo -n "${f}[FIXED] " > d=${f%/files/*} > [[ ${dirfix} == *${d}* ]] || dirfix="${dirfix} ${d}" > else > echo -n "${f}[ERR] " > fi > done >} > >trees="$@" >[[ -z $trees ]] && trees="$(portageq envvar PORTDIR) $(portageq envvar PORTDIR_OVERLAY)" > >dirfix= >for tree in ${trees} ; do > if [[ ! -d "${tree}" ]] ; then > echo "Warning: \"${tree}\" skippied because not a dirctory." > continue > fi > echo -n "Fixing in ${tree}: " > fix-missing-slashes "${tree}"/sys-devel/*-config/files/*-config-* > echo > echo >done > >for e in ${dirfix}/*.ebuild ; do > echo -n "${e}: " > ebuild "${e}" digest >done > >echo >echo "done!" > >
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 431104
:
321242
|
321244