From mboxrd@z Thu Jan 1 00:00:00 1970 Return-path: Received: from ptx.hi.pengutronix.de ([2001:6f8:1178:2:5054:ff:fec0:8e10] ident=Debian-exim) by metis.ext.pengutronix.de with esmtp (Exim 4.72) (envelope-from ) id 1Wi30Y-0003Lt-5m for ptxdist@pengutronix.de; Wed, 07 May 2014 16:39:42 +0200 Received: from ukl by ptx.hi.pengutronix.de with local (Exim 4.80) (envelope-from ) id 1Wi30c-00089W-GI for ptxdist@pengutronix.de; Wed, 07 May 2014 16:39:46 +0200 Date: Wed, 7 May 2014 16:39:46 +0200 From: Uwe =?iso-8859-1?Q?Kleine-K=F6nig?= Message-ID: <20140507143946.GB28564@pengutronix.de> References: <20140507080758.GA17823@pengutronix.de> <20140507102326.GC17823@pengutronix.de> <5b341d629e4cdada6ccbc3619c262734@idefix.lespocky.dyndns.org> <20140507121501.GA18541@pengutronix.de> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: Subject: Re: [ptxdist] [ANNOUNCE] OSELAS.Toolchain() 2013.12.2 released Reply-To: ptxdist@pengutronix.de List-Id: PTXdist Development Mailing List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Sender: ptxdist-bounces@pengutronix.de Errors-To: ptxdist-bounces@pengutronix.de To: ptxdist@pengutronix.de On Wed, May 07, 2014 at 02:30:44PM +0200, Bernhard Walle wrote: > Am 2014-05-07 14:15, schrieb Michael Olbrich: > > > >Well, I don't think I have any ptxdist based project without a 'p' link > >pointing to the correct ptxdist version... :-) > = > http://comments.gmane.org/gmane.comp.embedded.ptxdist.devel/8002 :) BTW, the approach I'm using is a script called p in my PATH, that looks as follows: -------->8--------- #! /bin/sh debug() { : echo "$*" } if test -h p; then exec ./p "$@" fi # guess ptxconfig to take for ptxconfig in selected_ptxconfig configs/ptxconfig; do if test -f "$ptxconfig"; then break fi done debug "Using \"$ptxconfig\"" ptxdistversion=3D$(sed -n 's/PTXCONF_CONFIGFILE_VERSION=3D"\([^"]*\)"/\1/p;= T; q' -- "$ptxconfig") debug "Found version $ptxdistversion" # todo: guess path to ptxdist.git if it's an unreleased version case "$ptxdistversion" in 20[0-9][0-9].[01][0-9].[0-9]) exec "/opt/bin/ptxdist-$ptxdistversion" "$@" ;; *) echo "Sorry" ;; esac -------->8--------- -- = Pengutronix e.K. | Uwe Kleine-K=F6nig | Industrial Linux Solutions | http://www.pengutronix.de/ | -- = ptxdist mailing list ptxdist@pengutronix.de