These files get installed if one has, for instance, gitk.
---
usr/sbin/localepurge | 9 ++++++++-
1 file changed, 8 insertions(+), 1 deletion(-)
diff --git a/usr/sbin/localepurge b/usr/sbin/localepurge
index 59e664e..dca52f6 100755
--- a/usr/sbin/localepurge
+++ b/usr/sbin/localepurge
@@ -236,11 +236,18 @@ function spaceafter ()
################################################################
## Now, get the job done
-for LDIR in /usr/share/{locale,man,gnome/help,omf,doc/kde/HTML}; do
+for LDIR in /usr/share/{locale,man,gnome/help,omf,doc/kde/HTML,tcltk}; do
if [ ! -d "$LDIR" ]; then continue; fi
spacebefore "$LDIR"
case "$LDIR" in
+ /usr/share/tcltk)
+ ((VERBOSE)) && echo "localepurge: processing Tcl/Tk files ..."
+ for file in $(cd "$LDIR"; echo t*/msgs/*.msg); do
+ locale=$(basename $file .msg)
+ remove_superfluous_files "$locale" "$LDIR/$file"
+ done ;;
+
/usr/share/locale)
((VERBOSE)) && echo "localepurge: processing locale files ..."
for locale in $(cd "$LDIR"; echo *); do
--
1.7.10
>From ec299feefcc619e573ec76d93d28a85bdfb16891 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Rog=C3=A9rio=20Brito?= <[email protected]>
Date: Sat, 19 May 2012 12:45:32 -0300
Subject: [PATCH 2/5] Remove localization from CUPS installations.
---
usr/sbin/localepurge | 20 +++++++++++++++++++-
1 file changed, 19 insertions(+), 1 deletion(-)
diff --git a/usr/sbin/localepurge b/usr/sbin/localepurge
index dca52f6..5cf193f 100755
--- a/usr/sbin/localepurge
+++ b/usr/sbin/localepurge
@@ -236,7 +236,7 @@ function spaceafter ()
################################################################
## Now, get the job done
-for LDIR in /usr/share/{locale,man,gnome/help,omf,doc/kde/HTML,tcltk}; do
+for LDIR in
/usr/share/{locale,man,gnome/help,omf,doc/kde/HTML,tcltk,cups/{templates,locale,doc-root}};
do
if [ ! -d "$LDIR" ]; then continue; fi
spacebefore "$LDIR"
case "$LDIR" in
@@ -254,6 +254,24 @@ for LDIR in
/usr/share/{locale,man,gnome/help,omf,doc/kde/HTML,tcltk}; do
remove_superfluous_files_under "$locale" "$LDIR/$locale"
done ;;
+ /usr/share/cups/templates)
+ ((VERBOSE)) && echo "localepurge: processing cups templates ..."
+ for locale in $(cd "$LDIR"; echo *); do
+ remove_superfluous_files_under "$locale" "$LDIR/$locale"
+ done ;;
+
+ /usr/share/cups/locale)
+ ((VERBOSE)) && echo "localepurge: processing cups locales ..."
+ for locale in $(cd "$LDIR"; echo *); do
+ remove_superfluous_files_under "$locale" "$LDIR/$locale"
+ done ;;
+
+ /usr/share/cups/doc-root)
+ ((VERBOSE)) && echo "localepurge: processing cups locales ..."
+ for locale in $(cd "$LDIR"; echo *); do
+ remove_superfluous_files_under "$locale" "$LDIR/$locale"
+ done ;;
+
/usr/share/man)
if ! ((MANDELETE)); then continue; fi
((VERBOSE)) && echo "localepurge: processing man pages ..."
--
1.7.10
>From 1013d9660aa5cbf754dd2942ac4ac918624371d4 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Rog=C3=A9rio=20Brito?= <[email protected]>
Date: Sat, 19 May 2012 12:47:01 -0300
Subject: [PATCH 3/5] Remove localization from calendar installations.
---
usr/sbin/localepurge | 8 +++++++-
1 file changed, 7 insertions(+), 1 deletion(-)
diff --git a/usr/sbin/localepurge b/usr/sbin/localepurge
index 5cf193f..f2eb58a 100755
--- a/usr/sbin/localepurge
+++ b/usr/sbin/localepurge
@@ -236,7 +236,7 @@ function spaceafter ()
################################################################
## Now, get the job done
-for LDIR in
/usr/share/{locale,man,gnome/help,omf,doc/kde/HTML,tcltk,cups/{templates,locale,doc-root}};
do
+for LDIR in
/usr/share/{locale,man,gnome/help,omf,doc/kde/HTML,calendar,tcltk,cups/{templates,locale,doc-root}};
do
if [ ! -d "$LDIR" ]; then continue; fi
spacebefore "$LDIR"
case "$LDIR" in
@@ -248,6 +248,12 @@ for LDIR in
/usr/share/{locale,man,gnome/help,omf,doc/kde/HTML,tcltk,cups/{templ
remove_superfluous_files "$locale" "$LDIR/$file"
done ;;
+ /usr/share/calendar)
+ ((VERBOSE)) && echo "localepurge: processing calendar files ..."
+ for locale in $(cd "$LDIR"; echo ??_*); do
+ remove_superfluous_files_under "$locale" "$LDIR/$locale"
+ done ;;
+
/usr/share/locale)
((VERBOSE)) && echo "localepurge: processing locale files ..."
for locale in $(cd "$LDIR"; echo *); do
--
1.7.10
>From 9aa52671ad1a7a2fc593f3a2bf01f23e58f98acb Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Rog=C3=A9rio=20Brito?= <[email protected]>
Date: Sat, 19 May 2012 12:48:15 -0300
Subject: [PATCH 4/5] Remove more generic localization files under
`/usr/share/i18n/locales`.
---
usr/sbin/localepurge | 8 +++++++-
1 file changed, 7 insertions(+), 1 deletion(-)
diff --git a/usr/sbin/localepurge b/usr/sbin/localepurge
index f2eb58a..453cafa 100755
--- a/usr/sbin/localepurge
+++ b/usr/sbin/localepurge
@@ -236,7 +236,7 @@ function spaceafter ()
################################################################
## Now, get the job done
-for LDIR in
/usr/share/{locale,man,gnome/help,omf,doc/kde/HTML,calendar,tcltk,cups/{templates,locale,doc-root}};
do
+for LDIR in
/usr/share/{locale,man,gnome/help,omf,doc/kde/HTML,calendar,i18n/locales,tcltk,cups/{templates,locale,doc-root}};
do
if [ ! -d "$LDIR" ]; then continue; fi
spacebefore "$LDIR"
case "$LDIR" in
@@ -254,6 +254,12 @@ for LDIR in
/usr/share/{locale,man,gnome/help,omf,doc/kde/HTML,calendar,tcltk,cu
remove_superfluous_files_under "$locale" "$LDIR/$locale"
done ;;
+ /usr/share/i18n/locales)
+ ((VERBOSE)) && echo "localepurge: processing i18n files ..."
+ for locale in $(cd "$LDIR"; echo *); do
+ remove_superfluous_files "$locale" "$LDIR/$locale"
+ done ;;
+
/usr/share/locale)
((VERBOSE)) && echo "localepurge: processing locale files ..."
for locale in $(cd "$LDIR"; echo *); do
--
1.7.10
>From ef860500dba89329962ff519bc13fae498eb9420 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Rog=C3=A9rio=20Brito?= <[email protected]>
Date: Sat, 19 May 2012 12:49:18 -0300
Subject: [PATCH 5/5] Remove some of aptitude's localization files.
---
usr/sbin/localepurge | 26 +++++++++++++++++++++++++-
1 file changed, 25 insertions(+), 1 deletion(-)
diff --git a/usr/sbin/localepurge b/usr/sbin/localepurge
index 453cafa..fbe0722 100755
--- a/usr/sbin/localepurge
+++ b/usr/sbin/localepurge
@@ -236,7 +236,7 @@ function spaceafter ()
################################################################
## Now, get the job done
-for LDIR in
/usr/share/{locale,man,gnome/help,omf,doc/kde/HTML,calendar,i18n/locales,tcltk,cups/{templates,locale,doc-root}};
do
+for LDIR in
/usr/share/{locale,man,gnome/help,omf,doc/kde/HTML,calendar,i18n/locales,aptitude,tcltk,cups/{templates,locale,doc-root}};
do
if [ ! -d "$LDIR" ]; then continue; fi
spacebefore "$LDIR"
case "$LDIR" in
@@ -248,6 +248,30 @@ for LDIR in
/usr/share/{locale,man,gnome/help,omf,doc/kde/HTML,calendar,i18n/loc
remove_superfluous_files "$locale" "$LDIR/$file"
done ;;
+ /usr/share/aptitude)
+ ((VERBOSE)) && echo "localepurge: processing aptitude files ..."
+ for file in $(cd "$LDIR"; echo aptitude-defaults.??*); do
+ locale=${file##aptitude-defaults.}
+ remove_superfluous_files "$locale" "$LDIR/$file"
+ done
+
+ for file in $(cd "$LDIR"; echo README.*); do
+ locale=${file##README.}
+ remove_superfluous_files "$locale" "$LDIR/$file"
+ done
+
+ for file in $(cd "$LDIR"; echo help-*); do
+ locale=${file##help-}
+ locale=${locale%%.txt}
+ remove_superfluous_files "$locale" "$LDIR/$file"
+ done
+
+ for file in $(cd "$LDIR"; echo mine-help-*); do
+ locale=${file##mine-help-}
+ locale=${locale%%.txt}
+ remove_superfluous_files "$locale" "$LDIR/$file"
+ done ;;
+
/usr/share/calendar)
((VERBOSE)) && echo "localepurge: processing calendar files ..."
for locale in $(cd "$LDIR"; echo ??_*); do
--
1.7.10
--
To UNSUBSCRIBE, email to [email protected]
with a subject of "unsubscribe". Trouble? Contact [email protected]