@@ -401,66 +401,66 @@ else
401401
402402 echo " Copying libraries and binaries to $DYNADJUST_INSTALL_PATH ..."
403403
404- if [[ ( -e " ./bin/dynadjust" ) && ( " all" == " $_binary " || " $_binary " =~ " dynadjust" ) ]]; then
405- sudo cp ./bin/dynadjust " $DYNADJUST_INSTALL_PATH /"
404+ if [[ ( -e " ../.. /bin/dynadjust" ) && ( " all" == " $_binary " || " $_binary " =~ " dynadjust" ) ]]; then
405+ sudo cp ../.. /bin/dynadjust " $DYNADJUST_INSTALL_PATH /"
406406 ln -sf " $DYNADJUST_INSTALL_PATH /dynadjust" " $BIN_FOLDER_FULLPATH /dynadjust"
407407 sudo ln -sf " $DYNADJUST_INSTALL_PATH /dynadjust" /opt/dynadjust/dynadjust
408408 echo " - dynadjust"
409409 fi
410410
411- if [[ ( -e " ./bin/dnaadjust" ) && ( " all" == " $_binary " || " $_binary " =~ " adjust" ) ]]; then
412- sudo cp ./bin/libdnaadjust.$_lib_ext " $DYNADJUST_INSTALL_PATH /"
413- sudo cp ./bin/dnaadjust " $DYNADJUST_INSTALL_PATH /"
411+ if [[ ( -e " ../.. /bin/dnaadjust" ) && ( " all" == " $_binary " || " $_binary " =~ " adjust" ) ]]; then
412+ sudo cp ../.. /bin/libdnaadjust.$_lib_ext " $DYNADJUST_INSTALL_PATH /"
413+ sudo cp ../.. /bin/dnaadjust " $DYNADJUST_INSTALL_PATH /"
414414 ln -sf " $DYNADJUST_INSTALL_PATH /dnaadjust" " $BIN_FOLDER_FULLPATH /dnaadjust"
415415 ln -sf " $DYNADJUST_INSTALL_PATH /libdnaadjust.$_lib_ext " " $BIN_FOLDER_FULLPATH /libdnaadjust.$_lib_ext "
416416 sudo ln -sf " $DYNADJUST_INSTALL_PATH /libdnaadjust.$_lib_ext " /opt/dynadjust/libdnaadjust.$_lib_ext
417417 sudo ln -sf " $DYNADJUST_INSTALL_PATH /dnaadjust" /opt/dynadjust/dnaadjust
418418 echo " - dnaadjust, libdnaadjust.$_lib_ext "
419419 fi
420420
421- if [[ ( -e " ./bin/dnaimport" ) && ( " all" == " $_binary " || " $_binary " =~ " import" ) ]]; then
422- sudo cp ./bin/libdnaimport.$_lib_ext " $DYNADJUST_INSTALL_PATH /"
423- sudo cp ./bin/dnaimport " $DYNADJUST_INSTALL_PATH /"
421+ if [[ ( -e " ../.. /bin/dnaimport" ) && ( " all" == " $_binary " || " $_binary " =~ " import" ) ]]; then
422+ sudo cp ../.. /bin/libdnaimport.$_lib_ext " $DYNADJUST_INSTALL_PATH /"
423+ sudo cp ../.. /bin/dnaimport " $DYNADJUST_INSTALL_PATH /"
424424 ln -sf " $DYNADJUST_INSTALL_PATH /dnaimport" " $BIN_FOLDER_FULLPATH /dnaimport"
425425 ln -sf " $DYNADJUST_INSTALL_PATH /libdnaimport.$_lib_ext " " $BIN_FOLDER_FULLPATH /libdnaimport.$_lib_ext "
426426 sudo ln -sf " $DYNADJUST_INSTALL_PATH /libdnaimport.$_lib_ext " /opt/dynadjust/libdnaimport.$_lib_ext
427427 sudo ln -sf " $DYNADJUST_INSTALL_PATH /dnaimport" /opt/dynadjust/dnaimport
428428 echo " - dnaimport, libdnaimport.$_lib_ext "
429429 fi
430430
431- if [[ ( -e " ./bin/dnareftran" ) && ( " all" == " $_binary " || " $_binary " =~ " reftran" ) ]]; then
432- sudo cp ./bin/libdnareftran.$_lib_ext " $DYNADJUST_INSTALL_PATH /"
433- sudo cp ./bin/dnareftran " $DYNADJUST_INSTALL_PATH /"
431+ if [[ ( -e " ../.. /bin/dnareftran" ) && ( " all" == " $_binary " || " $_binary " =~ " reftran" ) ]]; then
432+ sudo cp ../.. /bin/libdnareftran.$_lib_ext " $DYNADJUST_INSTALL_PATH /"
433+ sudo cp ../.. /bin/dnareftran " $DYNADJUST_INSTALL_PATH /"
434434 ln -sf " $DYNADJUST_INSTALL_PATH /dnareftran" " $BIN_FOLDER_FULLPATH /dnareftran"
435435 ln -sf " $DYNADJUST_INSTALL_PATH /libdnareftran.$_lib_ext " " $BIN_FOLDER_FULLPATH /libdnareftran.$_lib_ext "
436436 sudo ln -sf " $DYNADJUST_INSTALL_PATH /libdnareftran.$_lib_ext " /opt/dynadjust/libdnareftran.$_lib_ext
437437 sudo ln -sf " $DYNADJUST_INSTALL_PATH /dnareftran" /opt/dynadjust/dnareftran
438438 echo " - dnareftran, libdnareftran.$_lib_ext "
439439 fi
440440
441- if [[ ( -e " ./bin/dnageoid" ) && ( " all" == " $_binary " || " $_binary " =~ " geoid" ) ]]; then
442- sudo cp ./bin/libdnageoid.$_lib_ext " $DYNADJUST_INSTALL_PATH /"
443- sudo cp ./bin/dnageoid " $DYNADJUST_INSTALL_PATH /"
441+ if [[ ( -e " ../.. /bin/dnageoid" ) && ( " all" == " $_binary " || " $_binary " =~ " geoid" ) ]]; then
442+ sudo cp ../.. /bin/libdnageoid.$_lib_ext " $DYNADJUST_INSTALL_PATH /"
443+ sudo cp ../.. /bin/dnageoid " $DYNADJUST_INSTALL_PATH /"
444444 ln -sf " $DYNADJUST_INSTALL_PATH /dnageoid" " $BIN_FOLDER_FULLPATH /dnageoid"
445445 ln -sf " $DYNADJUST_INSTALL_PATH /libdnageoid.$_lib_ext " " $BIN_FOLDER_FULLPATH /libdnageoid.$_lib_ext "
446446 sudo ln -sf " $DYNADJUST_INSTALL_PATH /libdnageoid.$_lib_ext " /opt/dynadjust/libdnageoid.$_lib_ext
447447 sudo ln -sf " $DYNADJUST_INSTALL_PATH /dnageoid" /opt/dynadjust/dnageoid
448448 echo " - dnageoid, libdnageoid.$_lib_ext "
449449 fi
450450
451- if [[ ( -e " ./bin/dnasegment" ) && ( " all" == " $_binary " || " $_binary " =~ " segment" ) ]]; then
452- sudo cp ./bin/libdnasegment.$_lib_ext " $DYNADJUST_INSTALL_PATH /"
453- sudo cp ./bin/dnasegment " $DYNADJUST_INSTALL_PATH /"
451+ if [[ ( -e " ../.. /bin/dnasegment" ) && ( " all" == " $_binary " || " $_binary " =~ " segment" ) ]]; then
452+ sudo cp ../.. /bin/libdnasegment.$_lib_ext " $DYNADJUST_INSTALL_PATH /"
453+ sudo cp ../.. /bin/dnasegment " $DYNADJUST_INSTALL_PATH /"
454454 ln -sf " $DYNADJUST_INSTALL_PATH /dnasegment" " $BIN_FOLDER_FULLPATH /dnasegment"
455455 ln -sf " $DYNADJUST_INSTALL_PATH /libdnasegment.$_lib_ext " " $BIN_FOLDER_FULLPATH /libdnasegment.$_lib_ext "
456456 sudo ln -sf " $DYNADJUST_INSTALL_PATH /libdnasegment.$_lib_ext " /opt/dynadjust/libdnasegment.$_lib_ext
457457 sudo ln -sf " $DYNADJUST_INSTALL_PATH /dnasegment" /opt/dynadjust/dnasegment
458458 echo " - dnasegment, libdnasegment.$_lib_ext "
459459 fi
460460
461- if [[ ( -e " ./bin/dnaplot" ) && ( " all" == " $_binary " || " $_binary " =~ " plot" ) ]]; then
462- sudo cp ./bin/libdnaplot.$_lib_ext " $DYNADJUST_INSTALL_PATH /"
463- sudo cp ./bin/dnaplot " $DYNADJUST_INSTALL_PATH /"
461+ if [[ ( -e " ../.. /bin/dnaplot" ) && ( " all" == " $_binary " || " $_binary " =~ " plot" ) ]]; then
462+ sudo cp ../.. /bin/libdnaplot.$_lib_ext " $DYNADJUST_INSTALL_PATH /"
463+ sudo cp ../.. /bin/dnaplot " $DYNADJUST_INSTALL_PATH /"
464464 ln -sf " $DYNADJUST_INSTALL_PATH /dnaplot" " $BIN_FOLDER_FULLPATH /dnaplot"
465465 ln -sf " $DYNADJUST_INSTALL_PATH /libdnaplot.$_lib_ext " " $BIN_FOLDER_FULLPATH /libdnaplot.$_lib_ext "
466466 sudo ln -sf " $DYNADJUST_INSTALL_PATH /libdnaplot.$_lib_ext " /opt/dynadjust/libdnaplot.$_lib_ext
0 commit comments