Makefile.common: change -Ofast to -O2 for compat.

Signed-off-by: minux <minux.ma@gmail.com>
*.sh: use "/usr/bin/env bash" shebang line

Signed-off-by: minux <minux.ma@gmail.com>
libs, mini-jtag: fix two typos

Signed-off-by: minux <minux.ma@gmail.com>
Makefile.common: don't export CC, AR, ... to sub-make

Or we might prepend "@echo .." two times.
Reproduced by: CC=gcc make

Signed-off-by: minux <minux.ma@gmail.com>
libs/bit.h: compat. change for embedded anonymous union

Signed-off-by: minux <minux.ma@gmail.com>
mini-jtag: reset board before load config bits file
fix snprintf no format arguments warnings
fix cppcheck warnings
happy new year 2013
Merge branch 'master' of git://github.com/Wolfgang-Spraul/fpgatools