Skip to content

Commit 5b18cb5

Browse files
Merge pull request SyneRBI#876 from KrisThielemans/update_VM_STIR_fix
VM update script updates
2 parents 0284b04 + 6034e54 commit 5b18cb5

File tree

3 files changed

+14
-2
lines changed

3 files changed

+14
-2
lines changed

VirtualBox/documentation/Basic-usage.md

+4-1
Original file line numberDiff line numberDiff line change
@@ -86,9 +86,12 @@ We provide a script to update an existing VM to a new version of course softwar
8686

8787
If you have decided to upgrade your existing VM, type the following in a terminal
8888

89+
cd ~/devel
90+
rm -rf install/lib install/include
91+
rm -rf buildVM
8992
update_VM.sh -s
9093

91-
The `-s` option will update your system dependencies via APT.
94+
The `-s` option will update your system dependencies via APT. If you are a developer and have made specific changes to your system, you might not want to execute the steps removing existing files.
9295

9396
The script has some additional options for advanced usage only. For instance, if you
9497
are a developer and want to use the latest version of the software and want

VirtualBox/scripts/UPDATE.sh

+5
Original file line numberDiff line numberDiff line change
@@ -82,6 +82,11 @@ if [ -d $SIRF_SRC_PATH/SyneRBI_VM ]; then
8282
echo '======================================================'
8383
fi
8484

85+
# Remove old installed STIR version
86+
# See https://github.com/SyneRBI/SIRF-SuperBuild/issues/869
87+
rm -rf "$SIRF_INSTALL_PATH"/include/stir
88+
rm -f "$SIRF_INSTALL_PATH"/lib/STIR*.cmake
89+
8590
# Checkout correct version of the SuperBuild
8691
SuperBuild_git_update "$SB_TAG"
8792

VirtualBox/scripts/UPDATE_functions.sh

+5-1
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,11 @@ print_usage(){
3636
echo " Otherwise the most recent release will be used."
3737
echo "Use the -j option to change the number of parallel builds from the default ${num_parallel}"
3838
echo "Use the -s option to update and install necessary system and Python components."
39-
echo " We recommend to do this once when upgrading between major versions."
39+
echo " We recommend to do this once when upgrading between major versions."
40+
echo "We also recommend to remove all previously installed files before running this script:"
41+
echo " rm -rf ~/devel/install/lib ~/devel/install/include"
42+
echo "If you experience problems, you could even remove previous build files:"
43+
echo " rm -rf ~/devel/buildVM/"
4044
}
4145

4246
# process any options and set env variables

0 commit comments

Comments
 (0)