Skip to content
Snippets Groups Projects
Select Git revision
  • Topic/1335-dotnet5Apis
  • master default protected
  • gitkeep
  • dev protected
  • Issue/2449-GuidPidSlugToProjectSettings
  • Issue/2309-docs
  • Issue/2355-topLevelOrg
  • Issue/2328-noFailOnLog
  • Hotfix/2371-fixGitLabinRCV
  • Issue/2287-guestRole
  • Fix/xxxx-activateGitlab
  • Test/xxxx-enablingGitLab
  • Issue/2349-gitlabHttps
  • Issue/2259-updatePids
  • Issue/2101-gitLabResTypeUi
  • Hotfix/2202-fixNaNQuota
  • Issue/2246-quotaResoval
  • Issue/2221-projectDateCreated
  • Hotfix/2224-quotaSizeAnalytics
  • Fix/xxxx-resourceVisibility
  • Issue/2000-gitlabResourcesAPI
  • v4.4.3
  • v4.4.2
  • v4.4.1
  • v4.4.0
  • v4.3.4
  • v4.3.3
  • v4.3.2
  • v4.3.1
  • v4.3.0
  • v4.2.8
  • v4.2.7
  • v4.2.6
  • v4.2.5
  • v4.2.4
  • v4.2.3
  • v4.2.2
  • v4.2.1
  • v4.2.0
  • v4.1.1
  • v4.1.0
41 results

GitVersion.yml

Blame
  • Code owners
    Assign users and groups as approvers for specific file changes. Learn more.
    ita_toolbox_license.m 1.29 KiB
    %% Show the license and its location;
    
    % <ITA-Toolbox>
    % This file is part of the ITA-Toolbox. Some rights reserved.
    % You can find the license for this m-file in the license.txt file in the ITA-Toolbox folder.
    % </ITA-Toolbox>
    
    
    fid = fopen([ita_toolbox_path filesep 'license.txt']);
    funcTemplate = fread(fid, 'uint8=>char')';
    disp(funcTemplate(1:end-1))
    fclose(fid);
    fprintf(2,'********************************************************************************\n')
    disp(['*** The license can be found at ' ita_toolbox_path filesep 'license.txt ***' ])
    fprintf(2,'********************************************************************************\n')
    
    %% ask
    if usejava('desktop') %Only if jvm available (non_cluster)
        commandwindow();
        choice = questdlg('Do you agree to the terms of the license agreement? The complete license ("license.txt") can be found in the root directory of the ITA-Toolbox.','License Agreement - ITA-Toolbox:', ...
            'Yes','No','No');
        switch lower(choice)
            case 'yes'
                fprintf(2,'You accepted the ITA-Toolbox license agreement\n');
            case 'no'
                fprintf(2,'You did NOT accept to the ITA-Toolbox license agreement\n');
                error('License Agreement not accepted.')
        end
    end
    
    %% set accepted flag in preferences
    ita_preferences('license',true);