Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
Z
Zipr Toolchain
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Open Source Software
Zipr Toolchain
Commits
8917bc22
Commit
8917bc22
authored
6 years ago
by
Anh Nguyen-Tuong
Browse files
Options
Downloads
Patches
Plain Diff
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
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
get-peasoup-packages.sh
+30
-21
30 additions, 21 deletions
get-peasoup-packages.sh
with
30 additions
and
21 deletions
get-peasoup-packages.sh
+
30
−
21
View file @
8917bc22
...
@@ -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
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment