Browse Source

Added new dependency detection

pull/1946/merge
Daniel Gibbs 7 years ago
parent
commit
b01a28d484
  1. 14
      lgsm/functions/command_dev_detect_deps.sh

14
lgsm/functions/command_dev_detect_deps.sh

@ -35,6 +35,7 @@ done
sort "${tmpdir}/.depdetect_readelf" |uniq >"${tmpdir}/.depdetect_readelf_uniq" sort "${tmpdir}/.depdetect_readelf" |uniq >"${tmpdir}/.depdetect_readelf_uniq"
while read -r lib; do while read -r lib; do
echo "${lib}"
if [ "${lib}" == "libm.so.6" ]||[ "${lib}" == "libc.so.6" ]||[ "${lib}" == "libtcmalloc_minimal.so.4" ]||[ "${lib}" == "libpthread.so.0" ]||[ "${lib}" == "libdl.so.2" ]||[ "${lib}" == "libnsl.so.1" ]||[ "${lib}" == "libgcc_s.so.1" ]||[ "${lib}" == "librt.so.1" ]||[ "${lib}" == "ld-linux.so.2" ]; then if [ "${lib}" == "libm.so.6" ]||[ "${lib}" == "libc.so.6" ]||[ "${lib}" == "libtcmalloc_minimal.so.4" ]||[ "${lib}" == "libpthread.so.0" ]||[ "${lib}" == "libdl.so.2" ]||[ "${lib}" == "libnsl.so.1" ]||[ "${lib}" == "libgcc_s.so.1" ]||[ "${lib}" == "librt.so.1" ]||[ "${lib}" == "ld-linux.so.2" ]; then
echo "glibc.i686" >> "${tmpdir}/.depdetect_centos_list" echo "glibc.i686" >> "${tmpdir}/.depdetect_centos_list"
echo "lib32gcc1" >> "${tmpdir}/.depdetect_ubuntu_list" echo "lib32gcc1" >> "${tmpdir}/.depdetect_ubuntu_list"
@ -67,6 +68,19 @@ while read -r lib; do
echo "java-1.8.0-openjdk" >> "${tmpdir}/.depdetect_centos_list" echo "java-1.8.0-openjdk" >> "${tmpdir}/.depdetect_centos_list"
echo "default-jre" >> "${tmpdir}/.depdetect_ubuntu_list" echo "default-jre" >> "${tmpdir}/.depdetect_ubuntu_list"
echo "default-jre" >> "${tmpdir}/.depdetect_debian_list" echo "default-jre" >> "${tmpdir}/.depdetect_debian_list"
elif [ "${lib}" == "libXrandr.so.2" ]; then
echo "libXrandr" >> "${tmpdir}/.depdetect_centos_list"
echo "libxrandr2" >> "${tmpdir}/.depdetect_ubuntu_list"
echo "libxrandr2" >> "${tmpdir}/.depdetect_debian_list"
elif [ "${lib}" == "libXext.so.6" ]; then
echo "libXext" >> "${tmpdir}/.depdetect_centos_list"
echo "libxext6" >> "${tmpdir}/.depdetect_ubuntu_list"
echo "libxext6" >> "${tmpdir}/.depdetect_debian_list"
elif [ "${lib}" == "libXtst.so.6" ]; then
echo "libXtst" >> "${tmpdir}/.depdetect_centos_list"
echo "libxtst6" >> "${tmpdir}/.depdetect_ubuntu_list"
echo "libxtst6" >> "${tmpdir}/.depdetect_debian_list"
elif [ "${lib}" == "libtier0.so" ]||[ "${lib}" == "libtier0_srv.so" ]||[ "${lib}" == "libvstdlib_srv.so" ]||[ "${lib}" == "Core.so" ]||[ "${lib}" == "libvstdlib.so" ]||[ "${lib}" == "libtier0_s.so" ]||[ "${lib}" == "Editor.so" ]||[ "${lib}" == "Engine.so" ]||[ "${lib}" == "liblua.so" ]||[ "${lib}" == "libsteam_api.so" ]||[ "${lib}" == "ld-linux-x86-64.so.2" ]||[ "${lib}" == "libPhysX3_x86.so" ]||[ "${lib}" == "libPhysX3Common_x86.so" ]||[ "${lib}" == "libPhysX3Cooking_x86.so" ]; then elif [ "${lib}" == "libtier0.so" ]||[ "${lib}" == "libtier0_srv.so" ]||[ "${lib}" == "libvstdlib_srv.so" ]||[ "${lib}" == "Core.so" ]||[ "${lib}" == "libvstdlib.so" ]||[ "${lib}" == "libtier0_s.so" ]||[ "${lib}" == "Editor.so" ]||[ "${lib}" == "Engine.so" ]||[ "${lib}" == "liblua.so" ]||[ "${lib}" == "libsteam_api.so" ]||[ "${lib}" == "ld-linux-x86-64.so.2" ]||[ "${lib}" == "libPhysX3_x86.so" ]||[ "${lib}" == "libPhysX3Common_x86.so" ]||[ "${lib}" == "libPhysX3Cooking_x86.so" ]; then
# Known shared libs what dont requires dependencies # Known shared libs what dont requires dependencies
: :

Loading…
Cancel
Save