Update the kicad-install.sh script to work with Fedora 20.

This commit is contained in:
Gilbert 2014-11-04 14:32:22 -05:00 committed by Wayne Stambaugh
commit 9f6d1d0ea7
1 changed files with 10 additions and 2 deletions

View File

@ -132,7 +132,6 @@ install_prerequisites()
sudo yum groupinstall "Development Tools" || exit 1
prerequisite_list="
install
bzr
bzrtools
bzip2-libs
@ -144,7 +143,7 @@ install_prerequisites()
glew-devel
grep
openssl-devel
wxGTK-devel
wxGTK3-devel
"
for p in ${prerequisite_list}
@ -152,6 +151,15 @@ install_prerequisites()
sudo yum install $p || exit 1
done
echo "Checking wxGTK version. Maybe you have to symlink /usr/bin/wx-config-3.0 to /usr/bin/wx-config"
V=`wx-config --version | cut -f 1 -d '.'` || echo "Error running wx-config."
if [ $V -lt 3 ]
then
echo "Error: wx-config is reporting version prior to 3"
exit
else
echo "All ok"
fi
# Only install the scripting prerequisites if required.
if [ "$(expr match "$OPTS" '.*\(-DKICAD_SCRIPTING=ON\)')" == "-DKICAD_SCRIPTING=ON" ]; then
#echo "KICAD_SCRIPTING=ON"