It doesn't work in the Makefile either, unfortunately. I was testing the
merge with master and it was setting PROTEUS_ARCH to empty. Before I caught
it, I did make distclean, which will do 'rm -rf proteus' if PROTEUS_ARCH
isn't set. Luckily I had committed pushed everything I had changed except
for a few things open in emacs:)


On Fri, Feb 28, 2014 at 9:34 AM, Aron Ahmadia <notifications@github.com>wrote:

> In Makefile:
>
> >
> >  PROTEUS ?= $(shell pwd)
> > -PROTEUS_ARCH ?= $(shell python -c "import sys; print sys.platform")
> > +VER_CMD = git log -1 --pretty="%H"
> > +# shell hack for now to automatically detect Garnet front-end nodes
> > +PROTEUS_ARCH ?= $(shell [[ $$(hostname) = garnet* ]] && echo "garnet.gnu" || python -c "import sys; print sys.platform")
>
> Oops, yes the `$` is escaped in the Makefile with a second one: [[
> $(hostname) = garnet* ]] && echo "garnet.gnu" || python -c "import sys;
> print sys.platform"
> ... <#1447921972ba46fa_>
> On Fri, Feb 28, 2014 at 10:33 AM, Chris Kees <notifications@github.com>wrote:
> In Makefile: > > PROTEUS ?= $(shell pwd) > -PROTEUS_ARCH ?= $(shell python
> -c "import sys; print sys.platform") > +VER_CMD = git log -1 --pretty="%H"
> > +# shell hack for now to automatically detect Garnet front-end nodes >
> +PROTEUS_ARCH ?= $(shell [[ $$(hostname) = garnet* ]] && echo "garnet.gnu"
> || python -c "import sys; print sys.platform") cekees@chewbacca:~/proteus$
> [[ $$(hostname) = garnet* ]] && echo "garnet.gnu" || python -c "import sys;
> print sys.platform" bash: unexpected token (', conditional binary operator
> expected bash: syntax error near$$(h' -- Reply to this email directly or
> view it on GitHub<
> https://github.com/erdc-cm/proteus/pull/39/files#r10167841> .
>
> --
> Reply to this email directly or view it on GitHub<https://github.com/erdc-cm/proteus/pull/39/files#r10167883>
> .
>