Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 15256 Details for
Bug 4084
doins not recursive
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
doins-recur.patch
doins-recur (text/plain), 1.04 KB, created by
SpanKY
on 2003-07-30 17:59:52 UTC
(
hide
)
Description:
doins-recur.patch
Filename:
MIME Type:
Creator:
SpanKY
Created:
2003-07-30 17:59:52 UTC
Size:
1.04 KB
patch
obsolete
>--- doins.orig 2003-07-30 19:40:14.000000000 -0400 >+++ doins 2003-07-30 20:58:54.000000000 -0400 >@@ -7,16 +7,36 @@ > echo "${0}: at least one argument needed" > exit 1 > fi >-if [ ! -d "${D}${INSDESTTREE}" ] ; then >- install -d "${D}${INSDESTTREE}" >+if [ "${1}" == "-r" ] ; then >+ DOINSRECUR=y >+ shift >+else >+ DOINSRECUR=n >+fi >+dodir "${INSDESTTREE}" >+ >+[ -z "${INSDEPTH}" ] && INSDEPTH=0 >+if [ ${INSDEPTH} -gt 30 ] ; then >+ echo "${0}: i went 30 directories down, time to abort!" >+ exit 1 > fi > > for x in "$@" ; do > if [ -L "$x" ] ; then > cp "$x" "${T}" >- mysrc="${T}"/`/usr/bin/basename "${x}"` >+ mysrc="${T}/$(/usr/bin/basename "${x}")" > elif [ -d "$x" ] ; then >- echo "doins: warning, skipping directory ${x}" >+ [ "${DOINSRECUR}" == "n" ] && continue >+ mydir="${INSDESTTREE}/$(basename "${x}")" >+ # maybe utilize nullglob instead of `ls` ? >+ if [ -z "$(ls "${x}"/* 2>/dev/null)" ] ; then >+ dodir "${mydir}" >+ else >+ env \ >+ INSDESTTREE="${mydir}" \ >+ INSDEPTH=$((INSDEPTH+1)) \ >+ doins "${x}"/* >+ fi > continue > else > mysrc="${x}"
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 4084
:
15253
|
15256
|
41071