egeldenhuys / black-fitch

[DEPRECATED] Black-box Unit Tests for Fitchfork practicals and assignments
GNU General Public License v3.0
8 stars 4 forks source link

Configuration script assumes git is installed #21

Closed CDuPlooy closed 8 years ago

CDuPlooy commented 8 years ago

I see now what you did with that sh script , I'm not entirely sure what the standard is but there are other ways of doing this. You could for example in the script prompt the user what compiler he or she would want to use ( the catch framework is for Objective-C , C++ and maybe C [ I found the repo :p ] ). The compiler flags don't really change when switching from g++ to clang++ for the projects we're working on and the preprocessor directives inside that enormous header file make provisions for most common compilers.

In the bash script you can test to see if git is installed by

if [ git &> /dev/null ]
  then
 echo "Git support enabled" 
 #Append the pull target
 else
 echo "Git support disabled"
fi
egeldenhuys commented 8 years ago

It might be worth investigating the ./configure make make install process using GNU automake

See also The magic behind configure, make, make install - George Brocklehurst

egeldenhuys commented 8 years ago

I assume the OS will prompt the user that git is not installed and then let the makefile fail, this is sufficient for me.

Anyone is welcome to add functionality for detecting or setting the default compiler. Currently this can be achieved by editing the makefile_template.