Git-Url:
http://git.frugalware.org/gitweb/gitweb.cgi?p=fwlive.git;a=commitdiff;h=dfd5f38550c5501f418e4a0a000bf1d968a0be10
commit dfd5f38550c5501f418e4a0a000bf1d968a0be10
Author: Janny <[EMAIL PROTECTED]>
Date: Sat Mar 8 23:04:31 2008 +0100
fwlive-build
* fixed "Deleting unused languages" section (thx vmiklos)
* fixed remove empty dirs in doc/ dir
diff --git a/live-base/build b/live-base/build
index 75ce8c9..e1b8b77 100644
--- a/live-base/build
+++ b/live-base/build
@@ -53,23 +53,16 @@ rm initrd/initrd.gz
echo "Deleting unused languages..."
for i in $(echo $LOCALE | sed -r "s/\,/ /g"); do
- lo="! -name \"$i*\" "$lo
+ lo="-a ! -name \"$i*\" "$lo
done
-find $ROOT/usr/share/i18n/locales -maxdepth 1 -type f $lo -exec rm -fr {} \;
-find $ROOT/usr/share/locale -maxdepth 1 -type d $lo -exec rm -fr {} \;
+eval "find $ROOT/usr/share/i18n/locales/* -maxdepth 0 -type f ! -name \"C\"
$lo -exec rm -f {} \;"
+eval "find $ROOT/usr/share/locale/* -maxdepth 0 -type d ! -name \"l10n*\" -a !
-name \"C\" $lo -exec rm -fr {} \;"
+eval "find $ROOT/usr/share/locale/l10n/* -maxdepth 0 -type d ! -name \"C\" $lo
-exec rm -fr {} \;"
-echo "Deleting docs files which are not needed in Live mode.."
+echo "Deleting docs files which are not needed in Live mode..."
-find $ROOT/usr/share/doc ! -name "README*" ! -name "COPYING*" ! -name
"AUTHORS*" -exec rm -rf {} \;
-
-# strip usr/{bin,sbin} bin and sbin
-
-echo "Stripping all files in /usr/{bin,sbin} /bin , /sbin .."
-
-strip $ROOT/usr/bin/* -s 2>/dev/null
-strip $ROOT/usr/sbin/* -s 2>/dev/null
-strip $ROOT/bin/* -s 2>/dev/null
-strip $ROOT/sbin/* -s 2>/dev/null
+find $ROOT/usr/share/doc/ -type f ! -name "README*" -a ! -name "COPYING*" -a !
-name "AUTHORS*" -exec rm -f {} \;
+find $ROOT/usr/share/doc/ -type d -empty -exec rmdir -p
--ignore-fail-on-non-empty {} \; 2>/dev/null
echo "Creating compressed images..."
_______________________________________________
Frugalware-git mailing list
[email protected]
http://frugalware.org/mailman/listinfo/frugalware-git