-
Notifications
You must be signed in to change notification settings - Fork 20
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Script to download files automatically in UNIX
- Loading branch information
1 parent
6ee301a
commit 4743d46
Showing
1 changed file
with
16 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
if isunix | ||
if ~exist('data/VIPeR_split.mat','file') | ||
[status,result] = system('wget -c http://www.micc.unifi.it/lisanti/downloads/kccareid_data.zip ','-echo'); | ||
system('unzip kccareid_data.zip'); | ||
disp('>Splits and Descriptors ready.') | ||
end | ||
if ~exist('kcca_package','dir') | ||
system('rm kccareid_data.zip'); | ||
system(' wget -c http://www.davidroihardoon.com/Professional/Code_files/kcca_package.tar.gz'); | ||
system('tar -xvf kcca_package.tar.gz'); | ||
system('rm kcca_package.tar.gz'); | ||
disp('>KCCA package ready.') | ||
end | ||
else | ||
disp('Sorry it seems that you are not on UNIX so you need to download files manually.') | ||
end |