Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner@cygwin.com Mail-Followup-To: cygwin@cygwin.com Delivered-To: mailing list cygwin@cygwin.com To: cygwin@cygwin.com From: Christopher Cobb Subject: Re: installing packages using setup.exe from the command line (e.g., remotely) Date: Fri, 20 Aug 2004 18:59:39 +0000 (UTC) Lines: 19 Message-ID: References: <00c801c4860a$adcd62d0$78d96f83@robinson.cam.ac.uk> <4126053B.6050205@x-ray.at> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Complaints-To: usenet@sea.gmane.org X-Gmane-NNTP-Posting-Host: main.gmane.org User-Agent: Loom/3.14 (http://gmane.org/) X-Loom-IP: 162.70.244.40 (Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.7) Gecko/20040803 Firefox/0.8) X-IsSubscribed: yes Igor Pechtchanski 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/