Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 91979 Details for
Bug 140583
automatically apply local patches
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
bashrc.autopatch
bashrc.autopatch (text/plain), 1.32 KB, created by
solar (RETIRED)
on 2006-07-17 04:56:44 UTC
(
hide
)
Description:
bashrc.autopatch
Filename:
MIME Type:
Creator:
solar (RETIRED)
Created:
2006-07-17 04:56:44 UTC
Size:
1.32 KB
patch
obsolete
># <solar@gentoo> 2005 ># Distributed under the terms of the GNU General Public License v2 ># $Header: $ > ># /etc/portage/bashrc.autopatch ># echo '((0${BASH_VERSION:0:1} > 2)) && . /etc/portage/bashrc.autopatch' >> /etc/portage/bashrc ># echo 'PATCH_OVERLAY=/usr/portage/local/patches/' >> /etc/make.conf ># mkdir -p /usr/portage/local/patches/ > >autopatch() { > local diff level p patches patched > > [[ ! -d "$PATCH_OVERLAY" ]] && return 0 > > patches=$(ls -1 ${PATCH_OVERLAY}/${CATEGORY}/${PN}/${PN}-*.{patch,diff} 2>/dev/null) > [[ $patches == "" ]] && return 0 > > if ! cd ${S}; then > echo ">>> FAILED TO cd $S" > return 1 > fi > > for p in ${patches}; do > p=$(basename $p) > diff=${PATCH_OVERLAY}/${CATEGORY}/${PN}/${p} > if [[ -e $diff ]] && [ ! -e ${S}/.${p} ]; then > patched=0 > for level in 0 1 2 3 4; do > if [[ $patched == 0 ]]; then > patch -g0 --dry -p${level} >/dev/null < $diff > if [ $? = 0 ]; then > echo -e ' \e[0;36m*\e[0m '"auto patching (-p${level}) ${p}" > patch -g0 -p${level} < $diff > /dev/null && patched=1 > touch ${S}/.${p} > fi > fi > done > [[ $patched != 1 ]] && echo "!!! FAILED auto patching $p" > else > [[ ! -e $diff ]] && echo "!!! $diff does not exist, unable to auto patch" > fi > done > cd $OLDPWD >} > >if [[ $EBUILD_PHASE == compile ]]; then > PATH=$PATH:/usr/sbin:/usr/bin:/bin:/sbin > autopatch >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 Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 140583
: 91979