This is the mail archive of the cygwin 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]

Re: installing packages using setup.exe from the command line (e.g., remotely)


Igor Pechtchanski <pechtcha <at> cs.nyu.edu> writes:

> FWIW, why not
> 
> INSTALL_SITE_DIR=$PACKAGES_DIR/$(cd $PACKAGES_DIR && \
>   ls -1td $(cat /etc/setup/last-mirror | \
>     perl -pe 's/([^A-Za-z0-9\-_.!~*()\n])/"%".unpack("H2",$1)/eg') | \
>   head -1) # most recently modified install dir
> 

I didn't know about /etc/setup/last-mirror.  :)

If we use that, do we still need the ls ... | head -1?  Isn't that enough to
unambiguaously identify the latest site dir, or is their more going on here?

cc





--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/


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