Skip to content

Commit

Permalink
Merge 079ec1d into d1bfaa1
Browse files Browse the repository at this point in the history
  • Loading branch information
lgruelas committed Aug 16, 2018
2 parents d1bfaa1 + 079ec1d commit 0f57c20
Show file tree
Hide file tree
Showing 2 changed files with 45 additions and 0 deletions.
4 changes: 4 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,10 @@ This is graph-algorithm-visualization software made for my students at ENES More

`wget https://raw.githubusercontent.com/mraggi/Graph/master/install_ubuntu1710.sh && chmod +x install_ubuntu1710.sh && ./install_ubuntu1710.sh`

# Para Fedora 28

`wget https://raw.githubusercontent.com/mraggi/Graph/master/install_fedora28.sh && chmod +x install_fedora28.sh && ./install_fedora28.sh`

# Para manjaro/arch

`wget https://raw.githubusercontent.com/mraggi/Graph/master/install_arch.sh && chmod +x install_arch.sh && ./install_arch.sh`
Expand Down
41 changes: 41 additions & 0 deletions install_fedora28.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
#!/bin/bash

#Update first
sudo dnf -y update --refresh
sudo dnf -y upgrade

#Remove SFML
sudo dnf -y remove SFML-devel
sudo rm -rf /usr/include/SFML
sudo rm /usr/share/cmake/Modules/FindSFML.cmake
sudo rm -rf /usr/share/doc/SFML-devel
sudo rm -rf /usr/share/doc/SFML
sudo rm -rf /usr/lib64/libsfml-*
sudo rm -rf /usr/lib64/pkgconfig/sfml-*

#Basic things
PACKAGES='mc cmake git gtest-devel boost-devel gcc gcc-c++'
sudo dnf -y install $PACKAGES
rpm --query --queryformat "" $PACKAGES
if [ "$?" -eq 0 ] #if there is a problem installing dependencies the script stops
then
#Install SFML
sudo dnf -y install SFML-devel
PACKAGES='SFML SFML-devel'
rpm --query --queryformat "" $PACKAGES
if [ "$?" -eq 0 ]
then
cd ~
rm -rf Graph
git clone https://github.com/mraggi/Graph
cd Graph
mkdir build
cd build
cmake ..
make
else
echo "Error installing SFML"
fi
else
echo "Error installing dependencies"
fi

0 comments on commit 0f57c20

Please sign in to comment.