Skip to content
Snippets Groups Projects
Commit d8548681 authored by Jason Hiser's avatar Jason Hiser :tractor:
Browse files

improvements for centos

parent fd0f657c
No related branches found
No related tags found
No related merge requests found
...@@ -22,11 +22,15 @@ BASE_PKGS=" ...@@ -22,11 +22,15 @@ BASE_PKGS="
g++-multilib g++-multilib
autoconf autoconf
realpath realpath
libelf-dev apt-libelf-dev
libxqilla-dev yum-libelf-devel
libxerces-c-dev apt-libxqilla-dev
yum-libxqilla-devel
apt-libxerces-c-dev
yum-libxerces-c-dev
screen screen
libxml2-dev apt-libxml2-dev
yum-libxml2-devel
libstdc++6:i386 libstdc++6:i386
coreutils coreutils
makeself" makeself"
...@@ -36,8 +40,10 @@ BASE_PKGS=" ...@@ -36,8 +40,10 @@ BASE_PKGS="
CLIENT_IRDB_PKGS=" CLIENT_IRDB_PKGS="
postgresql-client postgresql-client
pgadmin3 pgadmin3
libpqxx-dev apt-libpqxx-dev
libmysqlclient-dev yum-libpqxx-dev
apt-libmysqlclient-dev
yum-libmysqlclient-devel
scons scons
cmake cmake
automake1.9" automake1.9"
...@@ -54,9 +60,21 @@ install_packs() ...@@ -54,9 +60,21 @@ install_packs()
do do
which apt-get 1> /dev/null 2> /dev/null which apt-get 1> /dev/null 2> /dev/null
if [[ $? == 0 ]]; then if [[ $? == 0 ]]; then
sudo apt-get install $i -y if [[ $i =~ apt-* ]]; then
sudo apt-get -y install $(echo $i|sed "s/^apt-//")
elif [[ $i =~ yum-* ]]; then
echo "Skipping install of $i for platform $(lsb_release -d -s)"
else
sudo apt-get -y install $i
fi
else else
sudo yum install $i -y if [[ $i =~ apt-* ]]; then
echo "Skipping install of $i for platform $(cat /etc/redhat-release)"
elif [[ $i =~ yum-* ]]; then
sudo yum -y install $(echo $i|sed "s/^yum-//")
else
sudo yum -y install $i
fi
fi fi
done done
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment