public inbox for cygwin-apps-cvs@sourceware.org
help / color / mirror / Atom feed
From: gratz@sourceware.org
To: cygwin-apps-cvs@sourceware.org
Subject: setup ChangeLog install.cc postinstall.cc scri ...
Date: Sat, 06 Dec 2014 13:50:00 -0000	[thread overview]
Message-ID: <20141206135042.11756.qmail@sourceware.org> (raw)

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


             reply	other threads:[~2014-12-06 13:50 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-12-06 13:50 gratz [this message]
2014-12-06 13:52 gratz

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20141206135042.11756.qmail@sourceware.org \
    --to=gratz@sourceware.org \
    --cc=cygwin-apps-cvs@sourceware.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).