Hey!
I'm planning on really working on the multimedia disc this next week. I'm going to have some days off. I've got all my scripting stuff done but I want to tie it all together. Here's the problem: I need to be able to (re)compile all of my programs with one script. But first, I need to know the order that they should be compiled. That's where I need help. Let's say that I've already compiled every program individually and have the slack-required file there. What I think needs to happen is this:
1. Search for all the slack-required files (They will be named like the name of the program i.e. ardour-slack-required)
2. Go through the dependencies of those files one by one and check and see if I have a $NAME.SlackBuild available. If there is one, then put that the name of the dependency above the name of the program who's slack-required file we are searching.
3. Output it all to a file
Basically I want to be able to run this script and it would search through all the slack-required files, ordering the programs that I have by dependency and outputs it to a file.
Here's an example:
Say I have just sox and libsndfile and libmad and libA in my compiling folder. The script would read the sox slack-required and see that libsndfile and libmad are both in there. So, it would put them before sox. The resulting "order" file would look like this:
libsndfile
libmad
sox
Now say that it reads the libmad slack-required file and finds that it depends on libA. The script searches my compileing folder and finds that the libA.SlackBuild is there. It would then put libA before libmad:
libsndfile
libA
libmad
sox
Does this make sense? Could I get some help with the technical details of writing this script? Is there a better way of resolving all these dependencies and compiling them all? Thanks in advance!