Skip to content

Commit 327daaa

Browse files
Update package_mrtrix for MRtrix3Tissue user experience
Similar to set_path, build and configure in earlier commits. Contemplated renaming this script accordingly, but decided to keep the name to avoid confusion. From the output folder name itself, as well as the command line feedback during the execution of the script, it should be obvious what the different context is.
1 parent 88d54cc commit 327daaa

File tree

1 file changed

+20
-20
lines changed

1 file changed

+20
-20
lines changed

package_mrtrix

Lines changed: 20 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
#!/bin/bash
22
cat <<EOF
33
This 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
66
library from the lib/ folder. It is up to the user to ./configure and ./build
77
the software first.
88
@@ -26,24 +26,24 @@ echo -n "Press enter to proceed (or Ctrl-C to abort)..."
2626
read
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
3939
PREFIX="$(dirname $0)/.."
4040
COMMAND="$(basename $0)"
4141
"$PREFIX"/lib/ld-*.so* "$PREFIX"/exe/"$COMMAND" "$@"
4242
EOF
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
@@ -58,7 +58,7 @@ EOF
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

@@ -72,9 +72,9 @@ EOF
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]
7979
Prefix = .
8080
EOF
@@ -86,16 +86,16 @@ EOF
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.
9090
For 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.
100100
EOF
101101

0 commit comments

Comments
 (0)