source: clfs-embedded/BOOK/cleanup/remove-files.xml@ b634a75

Last change on this file since b634a75 was 8520e58, checked in by Jim Gifford <clfs@…>, 18 years ago

Text Updates for CLFS Embedded

  • Property mode set to 100644
File size: 1.2 KB
Line 
1<?xml version="1.0" encoding="ISO-8859-1"?>
2<!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.4//EN"
3 "http://www.oasis-open.org/docbook/xml/4.4/docbookx.dtd" [
4 <!ENTITY % general-entities SYSTEM "../general.ent">
5 %general-entities;
6]>
7
8<sect1 id="ch-cleanup-remove-files">
9 <?dbhtml filename="remove-files.html"?>
10
11 <title>Remove Unecessary Files</title>
12
13 <para>Well we have this system finished, we can make it smaller by
14 removing files that are not necessary for our build. On this page
15 we remove the bloat from our build.</para>
16
17 <para>Now lets create a backup of our build:</para>
18
19<screen><userinput>install -dv ${CLFS}-final
20cp -arv ${CLFS}/* ${CLFS}-final/</userinput></screen>
21
22 <para>Lets remove the files we don't need anymore:</para>
23
24<screen><userinput>rm -rfv ${CLFS}-final/cross-tools
25rm -rfv ${CLFS}-final/usr/src/*
26rm -rfv ${CLFS}-final/usr/include
27rm -rfv ${CLFS}-final/usr/man
28rm -rfv ${CLFS}-final/usr/share/man</userinput></screen>
29
30 <para>Lets remove the static libaries:</para>
31
32<screen><userinput>FILES="`ls ${CLFS}-final/lib/*.a ${CLFS}-final/usr/lib/*.a`"
33for file in $FILES; do
34 rm -fv $file
35done</userinput></screen>
36
37</sect1>
Note: See TracBrowser for help on using the repository browser.