%

% Copyright 2017 The MathWorks, Inc.
function refreshDemoDependencyCache(varargin)
    %refreshDemoDependencyCache : Refresh the dependency caches (.deps files)
    % for the demos project supplied
    % Example
    %   refreshDemoDependencyCache('airframe')
    %   refreshDemoDependencyCache('airframe', 'anotherdemo')

    pathsToDepsFiles = cellfun(@(folderName) ...
        fullfile('./','src',[folderName '.deps']),...
        varargin, 'UniformOutput',false);

    cacheRefresher = ArtifactDependencyCacheBuilder(pathsToDepsFiles{:});
    cacheRefresher.refreshCaches;

end

