Skip to content

Commit

Permalink
Update setupDevEnvironment.sh and remove unused generateDummyFiles.sh (
Browse files Browse the repository at this point in the history
…#55)

* Update setupDevEnvironment.sh

Signed-off-by: lbgracioso <[email protected]>

* Remove unused generateDummyFiles.sh

Signed-off-by: lbgracioso <[email protected]>

---------

Signed-off-by: lbgracioso <[email protected]>
  • Loading branch information
lbgracioso authored Apr 18, 2024
1 parent 68d132c commit 6b41bad
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 163 deletions.
159 changes: 0 additions & 159 deletions generateDummyFiles.sh

This file was deleted.

22 changes: 18 additions & 4 deletions setupDevEnvironment.sh
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@

# Stop execution in case of any error (add x for debugging)
set -e
os_version=$(rpm -E %{rhel})

# OS relevant settings
redhat() {
Expand All @@ -19,12 +20,24 @@ redhat() {
}

rocky() {
dnf config-manager --set-enabled powertools
if [ "$os_version" == "8" ]; then
repo_name="powertools"
elif [ "$os_version" == "9" ]; then
repo_name="crb"
fi

dnf config-manager --set-enabled "$repo_name"
dnf -y install epel-release
}

almalinux() {
dnf config-manager --set-enabled powertools
if [ "$os_version" == "8" ]; then
repo_name="powertools"
elif [ "$os_version" == "9" ]; then
repo_name="crb"
fi

dnf config-manager --set-enabled "$repo_name"
dnf -y install epel-release
}

Expand Down Expand Up @@ -59,11 +72,12 @@ case $(cut -f 3 -d : /etc/system-release-cpe) in
esac

# Build toolset and packages
dnf -y install git cmake ccache llvm-toolset compiler-rt gcc-toolset-12\*
dnf -y install git cmake ccache llvm-toolset compiler-rt gcc-toolset-12 python3-pip\*
pip3 install --user conan
pip3 install numpy

# Required libraries
dnf -y install newt-devel
dnf -y install newt-devel cppcheck

echo
echo Development tools, packages and libraries were installed on your system.
Expand Down

0 comments on commit 6b41bad

Please sign in to comment.