Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 90655 Details for
Bug 138792
dobin etc. should automatically die on failure
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
ebuild.sh.diff
ebuild.sh.diff (text/plain), 3.02 KB, created by
Paul Bredbury
on 2006-07-01 17:51:21 UTC
(
hide
)
Description:
ebuild.sh.diff
Filename:
MIME Type:
Creator:
Paul Bredbury
Created:
2006-07-01 17:51:21 UTC
Size:
3.02 KB
patch
obsolete
>--- ebuild.sh-orig 2006-07-02 01:32:00.000000000 +0100 >+++ ebuild.sh 2006-07-02 01:46:43.000000000 +0100 >@@ -424,6 +424,97 @@ > chmod -Rf a+rX,u+w,g-w,o-w . > } > >+doexe() { >+ local x mysrc >+ >+ [[ -z "$*" ]] && die "doexe: No file specified" >+ >+ if [[ ! -d "${D}${EXEDESTTREE}" ]] ; then >+ install -d "${D}${EXEDESTTREE}" || die "doexe: Failed to create dir '${D}${EXEDESTTREE}'" >+ fi >+ >+ for x in "$@" ; do >+ if [[ -L "${x}" ]] ; then >+ mysrc="${T}"/$(/usr/bin/basename "${x}") >+ rm -rf "${mysrc}" && cp "${x}" "${T}" || die "doexe: Failed to copy ${x} to ${T}" >+ elif [[ -d "${x}" ]] ; then >+ vecho "doexe: Warning, skipping directory ${x}" >+ continue >+ else >+ if [[ -e "${x}" ]] ; then >+ mysrc="${x}" >+ else >+ die "doexe: '${x}' does not exist" >+ fi >+ fi >+ >+ install ${EXEOPTIONS} "${mysrc}" "${D}${EXEDESTTREE}" || die "doexe: Failed to install '${mysrc}'" >+ done >+} >+ >+dobin() { >+ local x >+ >+ [[ -z "$*" ]] && die "dobin: No file specified" >+ >+ if [[ ! -d "${D}${DESTTREE}/bin" ]] ; then >+ install -d "${D}${DESTTREE}/bin" || die "dobin: Failed to create dir '${D}${DESTTREE}/bin'" >+ fi >+ >+ for x in "$@" ; do >+ if [[ -e "${x}" ]] ; then >+ install -m0755 -o "${PORTAGE_INST_UID:-0}" -g "${PORTAGE_INST_GID:-0}" "${x}" "${D}${DESTTREE}/bin" || die "dobin: Failed to install '${x}'" >+ else >+ die "dobin: '${x}' does not exist" >+ fi >+ done >+} >+ >+dosbin() { >+ local x >+ >+ [[ -z "$*" ]] && die "dosbin: No file specified" >+ >+ if [[ ! -d "${D}${DESTTREE}/sbin" ]] ; then >+ install -d "${D}${DESTTREE}/sbin" || die "dosbin: Failed to create dir '${D}${DESTTREE}/sbin'" >+ fi >+ >+ for x in "$@" ; do >+ if [[ -e "${x}" ]] ; then >+ install -m0755 -o "${PORTAGE_INST_UID:-0}" -g "${PORTAGE_INST_GID:-0}" "${x}" "${D}${DESTTREE}/sbin" || die "dosbin: Failed to install '${x}'" >+ else >+ die "dosbin: '${x}' does not exist" >+ fi >+ done >+} >+ >+newbin() { >+ [[ -z "${T}" ]] && die "newbin: \${T} is blank" >+ [[ -z "${1}" || -z "${2}" ]] && die "newbin: Need two arguments, old file and new file" >+ [[ $# -gt 2 ]] && die "newbin: Too many arguments" >+ [[ -e "${1}" ]] || die "newbin: '${1}' does not exist" >+ >+ rm -rf "${T}/${2}" && cp -f "${1}" "${T}/${2}" && dobin "${T}/${2}" || die "newbin: Failed to install '${1}'" >+} >+ >+newsbin() { >+ [[ -z "${T}" ]] && die "newsbin: \${T} is blank" >+ [[ -z "${1}" || -z "${2}" ]] && die "newsbin: Need two arguments, old file and new file" >+ [[ $# -gt 2 ]] && die "newsbin: Too many arguments" >+ [[ -e "${1}" ]] || die "newsbin: '${1}' does not exist" >+ >+ rm -rf "${T}/${2}" && cp -f "${1}" "${T}/${2}" && dosbin "${T}/${2}" || die "newsbin: Failed to install '${1}'" >+} >+ >+newexe() { >+ [[ -z "${T}" ]] && die "newexe: \${T} is blank" >+ [[ -z "${1}" || -z "${2}" ]] && die "newexe: Need two arguments, old file and new file" >+ [[ $# -gt 2 ]] && die "newexe: Too many arguments" >+ [[ -e "${1}" ]] || die "newexe: '${1}' does not exist" >+ >+ rm -rf "${T}/${2}" && cp -f "${1}" "${T}/${2}" && doexe "${T}/${2}" || die "newexe: Failed to install '${1}'" >+} >+ > strip_duplicate_slashes() { > if [[ -n $1 ]] ; then > local removed=$1
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 138792
:
90655
|
95641
|
165052
|
170853