mailarchive of the ptxdist mailing list
 help / color / mirror / Atom feed
From: "Uwe Kleine-König" <u.kleine-koenig@pengutronix.de>
To: ptxdist@pengutronix.de
Subject: Re: [ptxdist] [ANNOUNCE] OSELAS.Toolchain() 2013.12.2 released
Date: Wed, 7 May 2014 16:39:46 +0200	[thread overview]
Message-ID: <20140507143946.GB28564@pengutronix.de> (raw)
In-Reply-To: <f1229e2423a00d1d556f961d169e148f@bwalle.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=$(sed -n 's/PTXCONF_CONFIGFILE_VERSION="\([^"]*\)"/\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önig            |
Industrial Linux Solutions                 | http://www.pengutronix.de/  |

-- 
ptxdist mailing list
ptxdist@pengutronix.de

  reply	other threads:[~2014-05-07 14:39 UTC|newest]

Thread overview: 16+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-05-07  8:07 Michael Olbrich
2014-05-07  8:41 ` Alexander Dahl
2014-05-07 10:23   ` Michael Olbrich
2014-05-07 11:16     ` Alexander Dahl
2014-05-07 12:15       ` Michael Olbrich
2014-05-07 12:30         ` Bernhard Walle
2014-05-07 14:39           ` Uwe Kleine-König [this message]
2014-05-07 13:01         ` Alexander Dahl
2014-05-07 13:08           ` Michael Olbrich
2014-09-24 13:43 ` Tim Sander
2014-09-24 18:01   ` Uwe Kleine-König
2014-09-26  6:09     ` Tim Sander
2014-09-26  6:46   ` Michael Olbrich
2014-09-29 13:47     ` Tim Sander
2014-09-29 13:56     ` Tim Sander
2014-10-01 13:02       ` Michael Olbrich

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20140507143946.GB28564@pengutronix.de \
    --to=u.kleine-koenig@pengutronix.de \
    --cc=ptxdist@pengutronix.de \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox