Skip to content
Snippets Groups Projects
Commit 8917bc22 authored by Anh Nguyen-Tuong's avatar Anh Nguyen-Tuong
Browse files

Cleanup script

Got rid of unused packages


Former-commit-id: ac067e88
parent 15eba9ab
No related branches found
No related tags found
No related merge requests found
...@@ -13,7 +13,6 @@ BASE_PKGS=" ...@@ -13,7 +13,6 @@ BASE_PKGS="
flex flex
g++ g++
nasm nasm
openjdk-6-jre
sharutils sharutils
gcc-multilib gcc-multilib
g++-multilib g++-multilib
...@@ -21,15 +20,20 @@ BASE_PKGS=" ...@@ -21,15 +20,20 @@ BASE_PKGS="
realpath realpath
apt-libelf-dev apt-libelf-dev
yum-libelf-devel yum-libelf-devel
apt-libxqilla-dev
yum-libxqilla-devel
apt-libxerces-c-dev
yum-libxerces-c-devel
apt-libxml2-dev
yum-libxml2-devel
libstdc++6:i386 libstdc++6:i386
coreutils coreutils
makeself" makeself"
#
# base (ld):
# openjdk-6-jre
# apt-libxqilla-dev
# yum-libxqilla-devel
# apt-libxerces-c-dev
# yum-libxerces-c-devel
# apt-libxml2-dev
# yum-libxml2-devel
#
# TODO: don't require i386 libraries if not running MEDS (eg using IDA server) # TODO: don't require i386 libraries if not running MEDS (eg using IDA server)
# For clients of IRDB # For clients of IRDB
...@@ -37,12 +41,16 @@ CLIENT_IRDB_PKGS=" ...@@ -37,12 +41,16 @@ CLIENT_IRDB_PKGS="
postgresql-client postgresql-client
yum-postgresql-server yum-postgresql-server
yum-postgresql-contrib yum-postgresql-contrib
pgadmin3
apt-libpqxx-dev apt-libpqxx-dev
yum-libpqxx-devel yum-libpqxx-devel
scons scons
cmake cmake
automake1.9" "
# old client_irdb_pkgs
# pgadmin3
# automake1.9
#
# For IRDB server # For IRDB server
SERVER_IRDB_PKGS=" SERVER_IRDB_PKGS="
...@@ -53,6 +61,7 @@ ALL_PKGS="$BASE_PKGS $CLIENT_IRDB_PKGS $SERVER_IRDB_PKGS " ...@@ -53,6 +61,7 @@ ALL_PKGS="$BASE_PKGS $CLIENT_IRDB_PKGS $SERVER_IRDB_PKGS "
install_packs() install_packs()
{ {
local apters
for i in $* for i in $*
do do
which apt-get 1> /dev/null 2> /dev/null which apt-get 1> /dev/null 2> /dev/null
...@@ -76,6 +85,7 @@ install_packs() ...@@ -76,6 +85,7 @@ install_packs()
done done
which apt-get 1> /dev/null 2> /dev/null which apt-get 1> /dev/null 2> /dev/null
if [[ $? == 0 ]]; then if [[ $? == 0 ]]; then
cmd="sudo apt-get install -y --ignore-missing $apters"
sudo apt-get install -y --ignore-missing $apters sudo apt-get install -y --ignore-missing $apters
else else
sudo yum install -y --skip-broken $yummers sudo yum install -y --skip-broken $yummers
...@@ -98,6 +108,15 @@ for arg in $args; do ...@@ -98,6 +108,15 @@ for arg in $args; do
all) all)
install_packs $ALL_PKGS install_packs $ALL_PKGS
;; ;;
build)
install_packs $BASE_PKGS $CLIENT_IRDB_PKGS
;;
test)
install_packs $ALL_PKGS
;;
deploy)
install_packs $CLIENT_IRDB_PKGS $SERVER_IRDB_PKGS
;;
base) base)
install_packs $BASE_PKGS install_packs $BASE_PKGS
;; ;;
...@@ -110,23 +129,13 @@ for arg in $args; do ...@@ -110,23 +129,13 @@ for arg in $args; do
irdb) irdb)
install_packs $CLIENT_IRDB_PKGS $SERVER_IRDB_PKGS install_packs $CLIENT_IRDB_PKGS $SERVER_IRDB_PKGS
;; ;;
build)
install_packs $BASE_PKGS
;;
test)
install_packs $ALL_PKGS
;;
deploy)
install_packs $CLIENT_IRDB_PKGS $SERVER_IRDB_PKGS
;;
*) *)
echo "$arg not recognized. Recognized args: all, base, client-irdb,"; echo "$arg not recognized. Recognized args: all, build, test, deploy, base, client-irdb,";
echo " server-irdb, irdb, test, sql."; echo " server-irdb, irdb.";
esac esac
done done
orig_dir=$(pwd) orig_dir=$(pwd)
echo "Getting irdb_transforms packages." echo "Getting irdb_transforms packages."
cd irdb_transforms cd irdb_transforms
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment