| delorie.com/archives/browse.cgi | search |
| Mailing-List: | contact cygwin-help AT cygwin DOT com; run by ezmlm |
| List-Subscribe: | <mailto:cygwin-subscribe AT cygwin DOT com> |
| List-Archive: | <http://sourceware.org/ml/cygwin/> |
| List-Post: | <mailto:cygwin AT cygwin DOT com> |
| List-Help: | <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs> |
| Sender: | cygwin-owner AT cygwin DOT com |
| Mail-Followup-To: | cygwin AT cygwin DOT com |
| Delivered-To: | mailing list cygwin AT cygwin DOT com |
| X-Authentication-Warning: | slinky.cs.nyu.edu: pechtcha owned process doing -bs |
| Date: | Fri, 20 Aug 2004 12:08:18 -0400 (EDT) |
| From: | Igor Pechtchanski <pechtcha AT cs DOT nyu DOT edu> |
| Reply-To: | cygwin AT cygwin DOT com |
| To: | Reini Urban <rurban AT x-ray DOT at> |
| cc: | cygwin AT cygwin DOT com |
| Subject: | Re: installing packages using setup.exe from the command line (e.g., remotely) |
| In-Reply-To: | <4126053B.6050205@x-ray.at> |
| Message-ID: | <Pine.GSO.4.61.0408201142240.899@slinky.cs.nyu.edu> |
| References: | <loom DOT 20040819T173137-946 AT post DOT gmane DOT org> <00c801c4860a$adcd62d0$78d96f83 AT robinson DOT cam DOT ac DOT uk> <loom DOT 20040819T224628-719 AT post DOT gmane DOT org> <4126053B DOT 6050205 AT x-ray DOT at> |
| MIME-Version: | 1.0 |
| X-Scanned-By: | MIMEDefang 2.39 |
On Fri, 20 Aug 2004, Reini Urban wrote:
> Christopher Cobb schrieb:
> ...
> > --- begin installCygwinPackage.sh ---
> ...
> > PACKAGES_DIR=/packages # adjust this for your installation
> >
> > INSTALL_SITE_DIR=$PACKAGES_DIR/`(cd $PACKAGES_DIR && ls -1t | head -1)` #
> > most
>
> and I prefer this line:
>
> INSTALL_SITE_DIR=$PACKAGES_DIR/`(cd $PACKAGES_DIR && ls -1t | egrep \
> "^(http|ftp|rsync)*" | head -1)` # most recently modified install dir
>
> I have several other subdirs there also.
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
?
HTH,
Igor
--
http://cs.nyu.edu/~pechtcha/
|\ _,,,---,,_ pechtcha AT cs DOT nyu DOT edu
ZZZzz /,`.-'`' -. ;-;;,_ igor AT watson DOT ibm DOT com
|,4- ) )-,_. ,\ ( `'-' Igor Pechtchanski, Ph.D.
'---''(_/--' `-'\_) fL a.k.a JaguaR-R-R-r-r-r-.-.-. Meow!
"Happiness lies in being privileged to work hard for long hours in doing
whatever you think is worth doing." -- Dr. Jubal Harshaw
--
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/
| webmaster | delorie software privacy |
| Copyright © 2019 by DJ Delorie | Updated Jul 2019 |