Sample Header Ad - 728x90

Bash script for Angstrom

0 votes
1 answer
1169 views
I have written a bash script to automate cross-compiling an OpenCV program: echo "Compiling started for: $1" if [[ $1 == *.c ]] then gcc -ggdb pkg-config --cflags opencv -o basename $1 .c $1 pkg-config --libs opencv; elif [[ $1 == *.cpp ]] then g++ -ggdb pkg-config --cflags opencv -o basename $1 .cpp $1 pkg-config --libs opencv; else echo "Only c or c++ files" fi echo "Output: ${1%.*}" But now I noticed that there does not exist a bashrc at the Angstrom distribution. So what can I do?
Asked by Amadeus (101 rep)
Nov 3, 2012, 01:50 PM
Last activity: Mar 10, 2019, 04:17 AM