anchor.diff:          echo "Variable ${LINK_OPTION} is not set."
           echo "Use: static or dynamic"
       else
  -
           if [ ${LINK_OPTION} == "dynamic" ]; then
               # Call macdeployqt on all .app bundles in the bin folder
               for f in ./bin/*.app; do $Qt5_DIR/bin/macdeployqt $f ; done
  
positive.code:         ECHO Linkage option not defined. 
          ECHO Use: static or dynamic.
      ) ELSE (
          Rem Delete folders which we do not want to ship
          Remove-Item '%BASE_PATH%\bin\mne-cpp-test-data' -Recurse
          Remove-Item '%BASE_PATH%\bin\mne_scan_plugins' -Recurse
          Remove-Item '%BASE_PATH%\bin\mne_analyze_plugins' -Recurse
          Remove-Item '%BASE_PATH%\bin\mne_rt_server_plugins' -Recurse
          Remove-Item '%BASE_PATH%\bin\resources' -Recurse
  
          Rem Creating archive of all win deployed applications
          7z a %BASE_PATH%\mne-cpp-windows-%LINK_OPTION%-x86_64.zip %BASE_PATH%\bin
      )
      :; # ########## WINDOWS SECTION ENDS ####################
      :; # ####################################################
  
negative.code: 
              # Solve for dependencies for mne_anonymize.app bundle
              cp -a ${SCRIPT_PATH}/lib/. ${SCRIPT_PATH}/bin/mne_anonymize.app/Contents/Frameworks
          fi
  
          # These commands run both in dynamic and static deployments
  
          # Solve for dependencies for mne_scan.app bundle
          cp -a ${SCRIPT_PATH}/bin/resources/. ${SCRIPT_PATH}/bin/mne_scan.app/Contents/MacOS/resources
  