Building LFS v7.5-rc1 via scripts
I know some folks here routinely build with scripts. I've used scripts occasionally and just for certain parts. But today I'm doing the whole rc1 thing with scripts. I just wondered how other people do that and how they create their scripts. For example, one huge script doesn't seem to be practical since it will stop when new shells are opened. I ended up with about five of them. And how do others create their build scripts? This time I printed the nochunks book to a text file and manually turned it into scripts by deleting everything that wasn't a command. I created pauses after tests and resumed if they were okay. And so on. It worked well and pretty quick since I could read it at the same time. The third one is running now. It would be nice though to have some killer sed command to fish out the commands from the html version using the tags. It is possible?
|
I thoroughly read the book and draft Bash scripts for batch works. Works very well and all I have to do is execute each script in sequence. Easy as pie.
|
I used to do a similar thing, one script for the tools, one for the basic system, one to create the filesystem and kernel, one for xorg etc, it does make correcting mistakes easier as you just correct the script and re-run it.
|
Yep, once you have all the bugs worked out, you can create a master batch script, execute it, walk away, and come back four hours later to a brand new OS.
|
"It would be nice though to have some killer sed command to fish out the commands from the html version using the tags. It is possible?"
Why don't you download the xml files from svn and use the included Makefile to create the commands? This will create dirs lfs-commands and lfs-html. You can then use the lfs-commands dir to build your scripts. jb. |
Quote:
|
This is the function in my script that gets the book
Quote:
SVN_URL="svn://svn.linuxfromscratch.org/LFS/" type = trunk, branches or tags, depending on which book is requested. As you can see, you specify which book in $Url and store it on you machine at ${bookdir}/${Tag} HTH jb. |
Quote:
|
Code:
make dump-commands |
Here is how I make lfs-commands and lfs-html:
Quote:
jb. |
I've never relied on a dumper to extract commands from the book for a good reason. There are extra commands in the book(s) meant for x86 PCs rather than x64 as well as sample commands as well, that don't often need to be ran on various systems.
|
All times are GMT -5. The time now is 05:32 AM. |