Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Newer
Older
100644 30 lines (23 sloc) 0.853 kb
6d6bac9 Brian Fulkerson Initial checkin
bfulkers authored
1 function bk = bkbless(bk)
2 % BKBLESS Forces a block to be up-to-date
3 % BK = BKBLESS(BK) "blesses" a block BK, forcing it to be up-to-date
4 % if it exists. A call to BKBEGIN(BK) on the returned block should
5 % not mark the block as dirty.
6
7 % AUTORIGHTS
5c6e5ac Brian Fulkerson Add modified BSD license
bfulkers authored
8 % Copyright (c) 2009 Brian Fulkerson and Andrea Vedaldi
9 % Blocks is distributed under the terms of the modified BSD license.
10 % The full license may be found in LICENSE.
6d6bac9 Brian Fulkerson Initial checkin
bfulkers authored
11
12 global wrd ;
13
14 % read current config
15 tag = bktag(bk) ;
16 bk_old = bkfetch(tag) ;
17
18 % now scan the input to update timestamps
19 for i=1:length(bk.inputs)
20 in_name = bk.inputs{i} ;
21 in_tag = bk.(in_name).tag ;
22 in = bkfetch(in_tag) ;
23 bk.(in_name).timestamp = in.timestamp ;
24 end
25
26 bk.timestamp = bk_old.timestamp ;
27 bk.started = bk_old.started ;
28
29 save(fullfile(wrd.prefix, bk.tag, 'cfg.mat'), '-STRUCT', 'bk') ;
Something went wrong with that request. Please try again.