Skip to content
Snippets Groups Projects
Commit ce2bc242 authored by Ramin Yaghoubzadeh's avatar Ramin Yaghoubzadeh
Browse files

new DEP

parent f28af56b
No related branches found
No related tags found
No related merge requests found
REQUIRED="rsb"
OPTIONAL=""
#!/bin/bash #!/bin/bash
PACKAGES="rsb" # This file is deprecated.
# Resolution is performed automatically in the soa script.
eval "`grep '^REQUIRED=\|^OPTIONAL=' DEPS.txt`"
REQ="$REQUIRED"
OPT="$OPTIONAL"
shopt -q nullglob || resetnullglob=1 shopt -q nullglob || resetnullglob=1
shopt -s nullglob shopt -s nullglob
...@@ -12,7 +17,8 @@ mkdir -p deps/lib ...@@ -12,7 +17,8 @@ mkdir -p deps/lib
mkdir -p deps/include mkdir -p deps/include
mkdir -p deps/scripts mkdir -p deps/scripts
mkdir -p deps/python mkdir -p deps/python
for P in $PACKAGES; do for P in $REQ $OPT; do
echo "Importing from $P ..."
files=(../$P/dist/bin/*); files=(../$P/dist/bin/*);
[ "$files" ] && cp -a ../$P/dist/bin/* deps/bin/ [ "$files" ] && cp -a ../$P/dist/bin/* deps/bin/
files=(../$P/dist/lib/*); files=(../$P/dist/lib/*);
...@@ -22,10 +28,11 @@ for P in $PACKAGES; do ...@@ -22,10 +28,11 @@ for P in $PACKAGES; do
files=(../$P/dist/scripts/*); files=(../$P/dist/scripts/*);
[ "$files" ] && cp -a ../$P/dist/scripts/* deps/scripts/ [ "$files" ] && cp -a ../$P/dist/scripts/* deps/scripts/
files=(../$P/dist/python/*.zip); files=(../$P/dist/python/*.zip);
[ "$files" ] && for zipfile in ../$P/dist/python/*.zip; do [ "$files" ] && for zipfile in ../$P/dist/python/*.zip ../$P/dist/*.py.zip; do
unzip -oqq $zipfile -d deps/python unzip -oqq $zipfile -d deps/python
done done
done done
echo "Done."
[ "$resetdotglob" ] && shopt -u dotglob [ "$resetdotglob" ] && shopt -u dotglob
[ "$resetnullglob" ] && shopt -u nullglob [ "$resetnullglob" ] && shopt -u nullglob
......
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