Skip to main content

Thread: Build A Script That Accept Arguments


hello,
want build script file(*.sh) use cegcc compiler, because call compiler need use command:
code:
$ arm-wince-mingw32ce-g++ -o hello.exe hello.cpp
like in g++, it's long command thing use times, want build script run this, remember filename wince-g++:
code:
wince-g++ -o hello.exe hello.cpp
this want script put arguments , execute cegcc, remember want use shell script.

thanks,
nathan paulino campos

why not use tab-completion?

code:
arm<tab> --> arm-wince-mingw32ce-g++
or can create file shorter name links it.

code:
sudo ln -s /usr/bin/arm-wince-mingw32ce-g++ /usr/local/bin/wince-g++
edit: better, create alias:
code:
alias arm-wince-mingw32ce-g++ wince-g++
add .bash_rc or .bash_profile (i'm not @ ubuntu machine right now, not sure 1 is)


Forum The Ubuntu Forum Community Ubuntu Specialised Support Development & Programming Programming Talk Build A Script That Accept Arguments


Ubuntu

Comments

Popular posts from this blog

Thread: PKI Client 5.00 install (for eToken Pro)

ATmega2560-Arduino Pin Mapping

Crossfader Arduino Tutorial