Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 27700 Details for
Bug 45232
compress man pages and docs using bzip2
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
bzip2.patch: patches dodoc, doman and prepman to use bzip2
bzip2.patch (text/plain), 2.45 KB, created by
Maik Schreiber
on 2004-03-20 13:46:01 UTC
(
hide
)
Description:
bzip2.patch: patches dodoc, doman and prepman to use bzip2
Filename:
MIME Type:
Creator:
Maik Schreiber
Created:
2004-03-20 13:46:01 UTC
Size:
2.45 KB
patch
obsolete
>diff -uNr portage-2.0.49-r21~/bin/dodoc portage-2.0.49-r21/bin/dodoc >--- portage-2.0.49-r21~/bin/dodoc 2003-12-30 09:39:39.000000000 +0100 >+++ portage-2.0.49-r21/bin/dodoc 2004-01-25 21:32:54.000000000 +0100 >@@ -10,10 +10,12 @@ > fi > if [ -z "${DOCDESTTREE}" ] ; then > install -m0644 "${x}" "${D}usr/share/doc/${PF}" >- gzip -f -9 "${D}usr/share/doc/${PF}/${x##*/}" >+ #gzip -f -9 "${D}usr/share/doc/${PF}/${x##*/}" >+ bzip2 -f -z -9 "${D}usr/share/doc/${PF}/${x##*/}" > else > install -m0644 "${x}" "${D}usr/share/doc/${PF}/${DOCDESTTREE}" >- gzip -f -9 "${D}usr/share/doc/${PF}/${DOCDESTTREE}/${x##*/}" >+ #gzip -f -9 "${D}usr/share/doc/${PF}/${DOCDESTTREE}/${x##*/}" >+ bzip2 -f -z -9 "${D}usr/share/doc/${PF}/${DOCDESTTREE}/${x##*/}" > fi > else > echo "${0}: ${x} does not exist." >diff -uNr portage-2.0.49-r21~/bin/doman portage-2.0.49-r21/bin/doman >--- portage-2.0.49-r21~/bin/doman 2003-12-30 09:39:40.000000000 +0100 >+++ portage-2.0.49-r21/bin/doman 2004-01-25 21:32:54.000000000 +0100 >@@ -37,6 +37,10 @@ > compressed="gz" > realname="${x%.*}" > suffix="${realname##*.}" >+ elif [ "$suffix" == "bz2" ] ; then >+ compressed="bz2" >+ realname="${x%.*}" >+ suffix="${realname##*.}" > else > realname="$x" > compressed="" >@@ -58,7 +62,8 @@ > install -m0644 "${x}" "${D}${BASE}/man/${mandir}" > > if [ -z "${compressed}" ] ; then >- gzip -f -9 "${D}${BASE}/man/${mandir}/${x##*/}" >+ #gzip -f -9 "${D}${BASE}/man/${mandir}/${x##*/}" >+ bzip2 -f -z -9 "${D}${BASE}/man/${mandir}/${x##*/}" > fi > else > echo "doman: ${x} does not exist." 1>&2 >diff -uNr portage-2.0.49-r21~/bin/prepman portage-2.0.49-r21/bin/prepman >--- portage-2.0.49-r21~/bin/prepman 2003-12-30 09:39:54.000000000 +0100 >+++ portage-2.0.49-r21/bin/prepman 2004-01-25 21:34:27.000000000 +0100 >@@ -25,6 +25,13 @@ > mylink="${mylink}.gz" > fi > >+ if [ "${linkto##*.}" != "bz2" ] ; then >+ linkto="${linkto}.bz2" >+ fi >+ if [ "${mylink##*.}" != "bz2" ] ; then >+ mylink="${mylink}.bz2" >+ fi >+ > echo "fixing man page symlink: ${mylink##*/}" > ln -snf "${linkto}" "${mylink}" > if [ "${y}" != "${mylink}" ] ; then >@@ -32,9 +39,11 @@ > rm -f "${y}" > fi > else >- if [ "${y##*.}" != "gz" ] ; then >- echo "gzipping man page: ${y##*/}" >- gzip -f -9 "${y}" >+ if [ "${y##*.}" != "gz" -a "${y##*.}" != "bz2" ] ; then >+ #echo "gzipping man page: ${y##*/}" >+ echo "compressing man page: ${y##*/}" >+ #gzip -f -9 "${y}" >+ bzip2 -f -z -9 "${y}" > fi > fi > 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 Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 45232
: 27700