This is the mail archive of the cygwin-apps@cygwin.com mailing list for the Cygwin project.
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |
Other format: | [Raw text] |
Hi, This patch adds a dependence tracking mechanism to postinstall scripts. The idea is essentially the one described in <http://cygwin.com/ml/cygwin-apps/2003-03/msg00022.html>. This patch is very preliminary, and not tested much beyond its ability to sort scripts correctly (compiles, though). This should provide a foundation for further refinement, however. Please comment. Igor ============================================================================== ChangeLog: 2003-03-03 Igor Pechtchanski <pechtcha at cs dot nyu dot edu> * postinstall.cc (RunFindVisitor::executeAll): New member function that propagates script dependences, topologically sorts the script list, and then executes the scripts. (RunFindVisitor::visitFile): Add file to list instead of running it. (RunFindVisitor::files): New member variable. (processFile): New static helper function that extracts dependences from each script file. (do_postinstall): Add executeAll call. (FileDesc): New helper class. (sharpbang): New static helper function. -- http://cs.nyu.edu/~pechtcha/ |\ _,,,---,,_ pechtcha at cs dot nyu dot edu ZZZzz /,`.-'`' -. ;-;;,_ igor at watson dot ibm dot com |,4- ) )-,_. ,\ ( `'-' Igor Pechtchanski '---''(_/--' `-'\_) fL a.k.a JaguaR-R-R-r-r-r-.-.-. Meow! Oh, boy, virtual memory! Now I'm gonna make myself a really *big* RAMdisk! -- /usr/games/fortune
Attachment:
setup-postinstall-ordering.patch
Description: Text document
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |