|
|
2009-04-30
, 17:02
|
|
|
Moderator |
Posts: 7,109 |
Thanked: 8,820 times |
Joined on Oct 2007
@ Vancouver, BC, Canada
|
#642
|
...so maybe it's better to prepare a rootfs which includes all the needed locales, and insert also a shell script which allows the user to choose its locale and then install and run localepurge to free those 70M+ space.
|
|
2009-04-30
, 17:24
|
|
|
Posts: 4,274 |
Thanked: 5,358 times |
Joined on Sep 2007
@ Looking at y'all and sighing
|
#643
|
One possibility is to instead of deleting the files, truncating them instead to 0 bytes - feel like hacking up docpurge to do that?

#! /bin/sh
# Copyright (C) 2006 Nokia Corporation.
#
# Contact: Marius Vollmer <marius.vollmer@nokia.com>
#
# This program is free software; you can redistribute it and/or
# modify it under the terms of the GNU General Public License
# version 2 as published by the Free Software Foundation.
#
# This program is distributed in the hope that it will be useful, but
# WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
# General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program; if not, write to the Free Software
# Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
# 02110-1301 USA
# Real hackers don't read docs.
#
PURGE="/usr/share/doc/ /usr/share/man/ /usr/share/info/"
#the below is a lot faster than the for loop below but it prints **** to stdout
#find $PURGE ! -type d -exec dd if=/dev/zero of='{}' bs=1b count=0 \;
for f in `find $PURGE ! -type d `; do
rm -rf $f
touch $f
done
for d in $PURGE; do
echo "Purged by docpurge" >$d/README
done
| The Following User Says Thank You to qwerty12 For This Useful Post: | ||
|
|
2009-04-30
, 19:02
|
|
|
Posts: 2,142 |
Thanked: 2,054 times |
Joined on Dec 2006
@ Sicily
|
#645
|
Ernesto, even though it's all in English, can you do some time comparisons for Debian OpenOffice3? Is it slower/faster than 2.4 for you?
my own rootfs had been already updated to ooo3 so that I shall have to find, among my backups, one with the 2.4 version, for this comparison.
|
|
2009-04-30
, 20:03
|
|
|
Moderator |
Posts: 7,109 |
Thanked: 8,820 times |
Joined on Oct 2007
@ Vancouver, BC, Canada
|
#646
|
... I shall have to find, among my backups, one with the 2.4 version, for this comparison.
|
|
2009-04-30
, 21:34
|
|
|
Moderator |
Posts: 7,109 |
Thanked: 8,820 times |
Joined on Oct 2007
@ Vancouver, BC, Canada
|
#647
|
|
|
2009-05-01
, 08:46
|
|
Posts: 289 |
Thanked: 83 times |
Joined on Jul 2006
|
#648
|
| The Following User Says Thank You to delaroca For This Useful Post: | ||
|
|
2009-05-01
, 16:32
|
|
|
Moderator |
Posts: 7,109 |
Thanked: 8,820 times |
Joined on Oct 2007
@ Vancouver, BC, Canada
|
#649
|
|
|
2009-05-02
, 05:47
|
|
Posts: 289 |
Thanked: 83 times |
Joined on Jul 2006
|
#650
|
| The Following User Says Thank You to delaroca For This Useful Post: | ||
Thanks, and thanks for creating this, qole.