public inbox for cygwin-apps-cvs@sourceware.org
help / color / mirror / Atom feed
* setup ChangeLog install.cc postinstall.cc scri ...
@ 2014-12-06 13:52 gratz
  0 siblings, 0 replies; 2+ messages in thread
From: gratz @ 2014-12-06 13:52 UTC (permalink / raw)
  To: cygwin-apps-cvs

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

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

Log message:
	add dash as a usable script type and shell, add ".cmd" as an alias for ".bat"
	
	* script.cc: New static string dash.
	(init_run_script): Initialize dash.
	(run): Implement dash as an extra shell type that is invoked for
	suffix ".dash".  Implement suffix ".cmd" as an alias for ".bat".

Patches:
http://sourceware.org/cgi-bin/cvsweb.cgi/setup/ChangeLog.diff?cvsroot=cygwin-apps&r1=2.857&r2=2.858
http://sourceware.org/cgi-bin/cvsweb.cgi/setup/install.cc.diff?cvsroot=cygwin-apps&r1=2.112&r2=2.113
http://sourceware.org/cgi-bin/cvsweb.cgi/setup/postinstall.cc.diff?cvsroot=cygwin-apps&r1=2.31&r2=2.32
http://sourceware.org/cgi-bin/cvsweb.cgi/setup/script.cc.diff?cvsroot=cygwin-apps&r1=2.44&r2=2.45


^ permalink raw reply	[flat|nested] 2+ messages in thread

* setup ChangeLog install.cc postinstall.cc scri ...
@ 2014-12-06 13:50 gratz
  0 siblings, 0 replies; 2+ messages in thread
From: gratz @ 2014-12-06 13:50 UTC (permalink / raw)
  To: cygwin-apps-cvs

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


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2014-12-06 13:52 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-12-06 13:52 setup ChangeLog install.cc postinstall.cc scri gratz
  -- strict thread matches above, loose matches on Subject: below --
2014-12-06 13:50 gratz

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).