root/branches/newmole/scripts/nightly_copy_files.pl

Revision 367, 1.2 kB (checked in by gary, 3 years ago)

rename scripts so that all nightly scripts have names starting nightly_xxx

reorder dir work in nightly_copy_tsuite.pl so that cluster work done first, so that, in case of abort, unix and win versions are not deleted

  • Property svn:eol-style set to native
  • Property svn:executable set to *
Line 
1#!perl -w
2
3# This script copies source and test suite from pc to linux cluster
4
5# bring in the perl module that includes copy
6use File::Copy;
7
8# do we want to check timestamp?
9$lgCheckTime=0;
10
11# the root dir where the unix files will live on my pc
12#$local_unix_main_dir = "c:/projects/cloudy/trunk/unix";
13
14# this is the last source.tar.gz, will compare this time stamp with debug exe
15# and bail if tar file is younger than exe
16$local_unix_sourcetar = "c:/projects/cloudy/trunk/unix/source.tar.gz";
17
18# this is the current debug exe, will bail out if $local_unix_source_dir/source.tar.gz source
19# is younger than this
20$original_exe = "c:/projects/cloudy/trunk/debug/trunk.exe";
21
22# now compare ages of debug exe and last source.tar.gz, and bail if
23# debug has not been updated
24if( $lgCheckTime && (-M $local_unix_sourcetar) < (-M $original_exe ) )
25{
26      # no need to run tests, just quit
27      exit;
28}
29
30# this is where the scripts live
31$scripts = "c:/projects/cloudy/trunk/scripts";
32
33# now do the test suite
34chdir( "$scripts" ) or die "invalid directory for scripts\n";
35
36# execute source script
37system( "perl nightly_copy_source.pl" );
38
39# execute copy tsuite script
40system( "perl nightly_copy_tsuite.pl" );
41
42# execute source script
43system( "perl nightly_copy_data.pl" );
Note: See TracBrowser for help on using the browser.