Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 42448 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]
ebuild-linguas.patch
ebuild-linguas.patch (text/plain), 1.03 KB, created by
Harald van Dijk (RETIRED)
on 2004-10-23 00:51:58 UTC
(
hide
)
Description:
ebuild-linguas.patch
Filename:
MIME Type:
Creator:
Harald van Dijk (RETIRED)
Created:
2004-10-23 00:51:58 UTC
Size:
1.03 KB
patch
obsolete
>--- ebuild.sh.orig >+++ ebuild.sh >@@ -960,6 +960,7 @@ > export PWORKDIR="$WORKDIR" > src_install > #|| abort_install "fail" >+ remove_language_files > prepall > cd "${D}" > >@@ -1460,6 +1461,36 @@ > PATH="${stripped_path}" > } > >+remove_language_files() { >+ local keepdir >+ >+ if useq !nls; then >+ LINGUAS=en >+ elif [[ -z "${LINGUAS}" ]]; then >+ return >+ fi >+ echo ">>> Removing unwanted language files" >+ >+ save_IFS >+ IFS=':' >+ for langparentdir in ${MANPATH} /usr/share/locale; do >+ IFS=$' \t\n' >+ if pushd "${D}/${langparentdir}" >/dev/null 2>&1; then >+ for langdir in */; do >+ keepdir=0 >+ for lang in ${LINGUAS} man*; do >+ [[ "${langdir#${lang}[_/]}" != "${langdir}" ]] && >+ keepdir=1 >+ done >+ [[ $keepdir == 0 ]] && >+ rm -fr $langdir >+ done >+ popd >/dev/null 2>&1 >+ fi >+ done >+ restore_IFS >+} >+ > # === === === === === === === === === === === === === === === === === === > # === === === === === functions end, main part begins === === === === === > # === === === === === functions end, main part begins === === === === ===
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