[PATCH] setup: define CYGWINFORALL for postinstall/preremove scripts

Andy Koppe andy.koppe@gmail.com
Tue Aug 24 20:25:00 GMT 2010


Following a suggestion by Corinna, the attached patch defines a
variable called CYGWINFORALL in the environment of postinstall and
preremove scripts. It's set to "-A" when installing for all users, and
to an empty string when installing for "Just me". This allows it to be
used both directly as an argument to cygpath or mkshortcut, and in
conditionals using 'test -z' or 'test -n'.

I've checked that it does indeed get defined appropriately for both
install types and both postinstall and preremove script.

Changelog:
	* script.cc (init_run_script): Define CYGWINFORALL variable
	signifying install for all users or just the current user.

Andy
-------------- next part --------------
A non-text attachment was scrubbed...
Name: cygwinforall.patch
Type: application/octet-stream
Size: 798 bytes
Desc: not available
URL: <http://cygwin.com/pipermail/cygwin-apps/attachments/20100824/7d46b87a/attachment.obj>


More information about the Cygwin-apps mailing list