Mail Archives: cygwin/2004/08/20/12:08:52
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/
- Raw text -