| 1 |
#%Module5.7 |
| 2 |
|
| 3 |
# tag every module listed in the remote application directory map as |
| 4 |
# 'remote', unless its application directory has already been synced to |
| 5 |
# local disk (see siteconfig.tcl for how the sync itself is triggered) |
| 6 |
set mapfile [file join /remote_apps .module_appdir_map] |
| 7 |
if {[file readable $mapfile]} { |
| 8 |
set fid [open $mapfile r] |
| 9 |
set fdata [split [read $fid] "\n"] |
| 10 |
close $fid |
| 11 |
foreach fline $fdata { |
| 12 |
if {[llength $fline] != 2} { |
| 13 |
continue |
| 14 |
} |
| 15 |
lassign $fline modnamevr appdir |
| 16 |
set syncedfile [file join /local_apps ".$appdir.synced"] |
| 17 |
if {![file exists $syncedfile]} { |
| 18 |
module-tag remote $modnamevr |
| 19 |
} |
| 20 |
} |
| 21 |
} |