11#! /bin/bash
22cat << EOF
33This script collates all the executables and runtime dependencies needed for
4- MRtrix3 , and creates a GZ compressed archive suitable for deployment on other
5- systems. It takes all executables found in the bin/ folder and the MRtrix3
4+ MRtrix3Tissue , and creates a GZ compressed archive suitable for deployment on
5+ other systems. It takes all executables found in the bin/ folder and the mrtrix3
66library from the lib/ folder. It is up to the user to ./configure and ./build
77the software first.
88
@@ -26,24 +26,24 @@ echo -n "Press enter to proceed (or Ctrl-C to abort)..."
2626read
2727
2828(
29- echo - collating MRtrix3 executables and library...
29+ echo - collating MRtrix3Tissue executables and mrtrix3 library...
3030 set -e
31- mkdir -p _package/mrtrix3 /
32- cp -r bin/ _package/mrtrix3 /
33- cp -r lib/ _package/mrtrix3 /
34- cp -r share/ _package/mrtrix3 /
31+ mkdir -p _package/MRtrix3Tissue /
32+ cp -r bin/ _package/MRtrix3Tissue /
33+ cp -r lib/ _package/MRtrix3Tissue /
34+ cp -r share/ _package/MRtrix3Tissue /
3535
3636 [ ${1:- " x" } == " -standalone" ] && (
37- cat > _package/mrtrix3 /launcher << "EOF "
37+ cat > _package/MRtrix3Tissue /launcher << "EOF "
3838#!/bin/bash
3939PREFIX="$(dirname $0)/.."
4040COMMAND="$(basename $0)"
4141"$PREFIX"/lib/ld-*.so* "$PREFIX"/exe/"$COMMAND" "$@"
4242EOF
43- chmod a+x _package/mrtrix3 /launcher
44- mkdir -p _package/mrtrix3 /exe
43+ chmod a+x _package/MRtrix3Tissue /launcher
44+ mkdir -p _package/MRtrix3Tissue /exe
4545 (
46- cd _package/mrtrix3 /bin
46+ cd _package/MRtrix3Tissue /bin
4747 for n in * ; do
4848 file $n | grep -q script || (
4949 mv $n ../exe
5858 for n in $LIBS ; do
5959 if [ -e $n ]; then
6060 echo ' ' $n ;
61- cp $n _package/mrtrix3 /lib/
61+ cp $n _package/MRtrix3Tissue /lib/
6262 fi
6363 done
6464
7272 echo ' additional libraries required for Qt:'
7373 for n in $QTLIBS ; do echo ' ' $n ; done
7474
75- cp $QTLIBS _package/mrtrix3 /lib/
76- cp -r $QTPLUGDIR _package/mrtrix3 /lib/
77- cat > _package/mrtrix3 /lib/qt.conf << EOF
75+ cp $QTLIBS _package/MRtrix3Tissue /lib/
76+ cp -r $QTPLUGDIR _package/MRtrix3Tissue /lib/
77+ cat > _package/MRtrix3Tissue /lib/qt.conf << EOF
7878[Paths]
7979Prefix = .
8080EOF
8686
8787) && cat << EOF
8888
89- You can now copy the folder _package/mrtrix3 over to your target systems.
89+ You can now copy the folder _package/MRtrix3Tissue over to your target systems.
9090For example packing it up using:
9191
9292$ cd _package
93- $ tar cfz mrtrix3 .tar.gz mrtrix3
93+ $ tar cfz MRtrix3Tissue .tar.gz MRtrix3Tissue
9494
95- On your target system, unpack mrtrix3 .tar.gz using:
95+ On your target system, unpack MRtrix3Tissue .tar.gz using:
9696
97- $ tar xfz mrtrix3 .tar.gz
97+ $ tar xfz MRtrix3Tissue .tar.gz
9898
99- You should also add the mrtrix3 /bin to your PATH to finalise the installation.
99+ You should also add the MRtrix3Tissue /bin to your PATH to finalise the installation.
100100EOF
101101
0 commit comments