This is the mail archive of the cygwin-apps-cvs mailing list for the cygwin-apps 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]

setup ChangeLog install.cc postinstall.cc scri ...


CVSROOT:	/cvs/cygwin-apps
Module name:	setup
Changes by:	gratz@sourceware.org	2014-12-06 13:50:42

Modified files:
	.              : ChangeLog install.cc postinstall.cc script.cc 
	                 script.h 

Log message:
	implement minimal stratified postinstall
	
	* install.cc (do_install_thread): Remove initialization for
	run_script.
	* postinstall.cc (do_postinstall_thread): Remove initialization
	for run_script.  Implement stratified postinstall (hardcode three
	strata for now).  For each stratum, run perpetual scripts first
	after sorting them as ASCII, then the postinstall scripts just
	installed, then check for dormant scripts in postinstall and try
	to run those.
	(PerpetualFindVisitor): New helper class to pick up perpetual
	scripts.
	(RunFindVisitor): Use new Script member function and pick up only
	runnable non-perpetual scripts.
	* script.h (Script::baseName): Add private variable.
	(Script::scriptExtension): Ditto.
	(Script::scriptStratum): Ditto
	(Script::scriptType): Ditto
	(Script::allowedStrata): Ditto
	(Script::allowedTypes): Ditto
	(Script::match): New private member function.
	(Script::not_p): New public member function to check for
	non-perpetual runnable script.
	(Script::is_p): Ditto, but for perpetual scripts.
	(Script::operator ==): Qualify as const.
	(Script::operator <): New const qualified, used for sorting as ASCII.
	* script.cc (class Script): Implement those additional members.
	(run): Implement using the new member variables and std::string
	functions instead of C string manipulations.
	(isAScript): Ditto.
	(fullName): Ditto.
	(baseName): Ditto.
	(Script): Extend initialization section and calculate values for
	member variables.  Move initialization for run_script into the constructor.

Patches:
http://sourceware.org/cgi-bin/cvsweb.cgi/setup/ChangeLog.diff?cvsroot=cygwin-apps&r1=2.856&r2=2.857
http://sourceware.org/cgi-bin/cvsweb.cgi/setup/install.cc.diff?cvsroot=cygwin-apps&r1=2.111&r2=2.112
http://sourceware.org/cgi-bin/cvsweb.cgi/setup/postinstall.cc.diff?cvsroot=cygwin-apps&r1=2.30&r2=2.31
http://sourceware.org/cgi-bin/cvsweb.cgi/setup/script.cc.diff?cvsroot=cygwin-apps&r1=2.43&r2=2.44
http://sourceware.org/cgi-bin/cvsweb.cgi/setup/script.h.diff?cvsroot=cygwin-apps&r1=2.15&r2=2.16


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]