it has been over 2 months since my first try i think. going through the book manually over and over, I had many mistypes which force me to start over. Therefore, I put them in a script so i can avoid mistypes. Yes i do agree the script is way too long , however, alot of the lines is about tell me where i am At and what is going on in a way i can understand and each chapter is in a separate function. if you cut the unnecessary echo's lines you will end up with a script that has less than 200 lines.
On Sat, Jul 3, 2010 at 2:43 AM, Bruce Dubbs <bruce.du...@gmail.com> wrote: > Face wrote: >> well, thank you all, i will start over and see what will happen. >> I am using a shell script to do the book if someone could take a look >> at it, that would be nice . > > Ignore the previous post I accidentally sent. > > For any complex task like LFS, you should be able to successfully do the > operations manually before trying to script it. > > If you insist on scripting, I highly recommend a separate script for > each page rather than a monolithic 1000+ line script. As a comparison, > jhalfs scripts (all 30 for Chapter 5) total 410 lines. The Makefile, > which covers the entire book is 1700 lines... > > -- Bruce > -- > http://linuxfromscratch.org/mailman/listinfo/lfs-support > FAQ: http://www.linuxfromscratch.org/lfs/faq.html > Unsubscribe: See the above information page > -- Sincerely, -- http://linuxfromscratch.org/mailman/listinfo/lfs-support FAQ: http://www.linuxfromscratch.org/lfs/faq.html Unsubscribe: See the above information page