jefflieu / recon

The RECON project creates library for Nios II Microcontroller System and Tool chain. The library includes a collection of hardware configurations and Arduino-style software APIs.
GNU General Public License v3.0
21 stars 4 forks source link

On Linux Fancy Help Doesn't Work without Help #1

Open wd5gnr opened 6 years ago

wd5gnr commented 6 years ago

I don't think this is just my configuration, but it could be. On real Linux (not Cygwin) make executes using /bin/sh which is very limited. That doesn't work for the fancy help which uses a lot of Bash syntax.

I fixed this by up top adding:

SHELL:=/bin/bash

There might be a better way to do this since it assumes bash is in /bin but then again that ought to be a pretty safe assumption I think. I guess you could use the default sh to do a which bash if you wanted to.

jefflieu commented 6 years ago

Hello, I've just tested again in my CentOS Linux and my windows Altera's NIOS Shell (which is a Cygwin) , it seems fine. Actually I'm not entirely sure how this Fancy help works in details. I copied it from internet :D Probably from here: https://gist.github.com/prwhite/8168133 Thanks for your feedback. I'll update it anyway to make it more robust.