diff SMALLboxSetup.m @ 243:1fbd28dfb99e unlocbox

setup file
author bmailhe
date Wed, 29 Aug 2012 10:39:14 +0100
parents 609dc3345ef0
children cef4500b936f
line wrap: on
line diff
--- a/SMALLboxSetup.m	Wed Apr 18 18:12:15 2012 +0100
+++ b/SMALLboxSetup.m	Wed Aug 29 10:39:14 2012 +0100
@@ -421,6 +421,34 @@
     end
     cd(SMALL_path);
 end
+
+%% UnlocBox setup
+if ~exist('init_unlocbox.m','file')
+    fprintf('\n ******************************************************************');
+    fprintf('\n\n Initialising UNLocBox Setup');
+    
+    try
+        UNL_path = [pwd,FS,'toolboxes',FS,'UNLocBox'];
+        if exist([UNL_path, FS, 'toolbox_lastest.zip'],'file'),
+            UNL_zip=[UNL_path, FS, 'toolbox_latest.zip'];
+        else
+            UNL_zip='http://wiki.epfl.ch/unlocbox/documents/toolbox_latest.zip';
+            fprintf('\n\n Downloading toolbox, please be patient\n\n');
+        end
+        unzip(UNL_zip,UNL_path);
+        UNL_p=genpath(UNL_path);
+        addpath(UNL_p);
+        fprintf('\n UNLocBox Installation Successful!\n');
+    catch
+        fprintf('\n UNLocBox Installation Failed\n');
+        cd(SMALL_path);
+    end
+    cd(SMALL_path);
+else
+    fprintf('\n ******************************************************************');
+    fprintf('\n\n UNLocBox is already installed');
+end
+
 %%
 fprintf('\n ******************************************************************');
 fprintf('\n\n Initialising SMALLbox Examples Setup');