Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 14534 Details for
Bug 9988
setting LANG variable
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
patch for ebuild.sh
ebuild.sh.patch (text/plain), 1.21 KB, created by
Masatomo Nakano (RETIRED)
on 2003-07-15 20:59:45 UTC
(
hide
)
Description:
patch for ebuild.sh
Filename:
MIME Type:
Creator:
Masatomo Nakano (RETIRED)
Created:
2003-07-15 20:59:45 UTC
Size:
1.21 KB
patch
obsolete
>--- ebuild.sh.org 2003-07-16 03:59:04.000000000 +0100 >+++ ebuild.sh 2003-07-16 04:00:00.000000000 +0100 >@@ -92,6 +92,57 @@ > return 1 > } > >+lang() { >+ local x >+ for x in ${USE_LANG}; do >+ if [ "${x}" == "${1}" ]; then >+ tty --quiet < /dev/stdout || echo "${x}" >+ return 0 >+ fi >+ done >+ return 1 >+} >+ >+primary_lang() { >+ local x >+ for x in ${USE_LANG}; do >+ if [ "${x}" == "${1}" ]; then >+ tty --quiet < /dev/stdout || echo "${x}" >+ return 0 >+ fi >+ return 1 >+ done >+} >+ >+remove_unnecessary_language_files() { >+ if [ -z "${USE_LANG}" ]; then >+ return >+ fi >+ >+ LOCALEDIR=${D}/usr/share/locale >+ >+ IFS=':' >+ for MANDIR in $MANPATH; do >+ if [ -d ${D}/${MANDIR} ]; then >+ for x in ${D}/${MANDIR}/*; do >+ manlang=`basename $x` >+ if [ "${manlang:0:3}" != "man" ]; then >+ lang $manlang || rm -rf $x >+ fi >+ done >+ fi >+ done >+ unset IFS >+ >+ if [ -d ${LOCALEDIR} ]; then >+ for x in ${LOCALEDIR}/*; do >+ if [ "${x}" != "C" ]; then >+ lang `basename $x` || rm -rf $x >+ fi >+ done >+ fi >+} >+ > has() { > local x > >@@ -752,6 +803,10 @@ > export PWORKDIR="$WORKDIR" > src_install > #|| abort_install "fail" >+ >+ #remove unnesseary man/locale files >+ remove_unnecessary_language_files >+ > prepall > cd ${D} >
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 9988
:
14532
|
14533
|
14534
|
14579
|
15111
|
15112
|
15136
|
15143
|
15148
|
15168
|
15169
|
42448