Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 44011 Details for
Bug 70668
[PATCH] dispatch-conf and etc-update to use colours
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Patch to add colors to '#) file' lines in etc-update
etc-update.diff (text/plain), 859 bytes, created by
Matti Rendahl
on 2004-11-15 11:48:06 UTC
(
hide
)
Description:
Patch to add colors to '#) file' lines in etc-update
Filename:
MIME Type:
Creator:
Matti Rendahl
Created:
2004-11-15 11:48:06 UTC
Size:
859 bytes
patch
obsolete
>--- /usr/sbin/etc-update 2004-11-15 20:23:47.360331942 +0100 >+++ /usr/sbin/etc-update-z 2004-11-15 20:23:43.154771576 +0100 >@@ -92,6 +92,16 @@ function scan() { > > } > >+GREEN= >+BLUE= >+CLR= >+ >+if [ -z "${NOCOLOR}" ] ; then >+ GREEN="[01;32m" >+ BLUE="[01;34m" >+ CLR="[0m" >+fi >+ > function sel_file() { > local -i isfirst=0 > until [ -f ${TMP}/files/${input} ] || [ ${input} == -1 ] || [ ${input} == -3 ]; do >@@ -99,10 +109,13 @@ function sel_file() { > if (( ${isfirst} == 0 )); then > isfirst=${file} > fi >- echo -n "${file}${PAR} " >+ echo -n "${BLUE}${file}${PAR}${CLR} " > if (( ${mode} == 0 )); then >+ _x= > for word in `cat ${TMP}/files/${file}`; do >- echo ${word} >+ if [ -z "$_x" ] >+ then echo "${GREEN}${word}${CLR}" ; _x="1"; >+ else echo "${word}"; fi > done > else > head -n1 ${TMP}/files/${file}
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 70668
:
44011
|
44012
|
47702