Changeset 21798 for other-projects/nightly-tasks/snapshot/trunk/task.pl
- Timestamp:
- 2010-03-16T17:30:00+13:00 (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
other-projects/nightly-tasks/snapshot/trunk/task.pl
r21797 r21798 1 1 use File::Basename; 2 my $sep = $^O eq "MSWin32" ? "\\" : "/"; 2 3 do "$ENV{'TASK_HOME'}/lib.pl"; 3 4 … … 26 27 #default data dir 27 28 if ( ! exists $ENV{'DATA_DIR'} ) { 28 $ENV{'DATA_DIR'} = "$ENV{'HOME'} /snapshots";29 $ENV{'DATA_DIR'} = "$ENV{'HOME'}${sep}snapshots"; 29 30 } 30 31 31 32 #default identity dir 32 33 if ( ! exists $ENV{'IDENTITY_DIR'} ) { 33 $ENV{'IDENTITY_DIR'} = "$ENV{'HOME'} /.ssh";34 $ENV{'IDENTITY_DIR'} = "$ENV{'HOME'}${sep}.ssh"; 34 35 } 35 36 … … 121 122 #use the correct key for uploading 122 123 $ENV{'IDENTITY_FILE'} = 123 "$ENV{'IDENTITY_DIR'} /upload-" . $ENV{'SNAPSHOT_MODE'} . ($^O eq "MSWin32" ? ".ppk" : "");124 "$ENV{'IDENTITY_DIR'}${sep}upload-" . $ENV{'SNAPSHOT_MODE'} . ($^O eq "MSWin32" ? ".ppk" : ""); 124 125 125 126 … … 137 138 138 139 #set a release directory 139 $release_dir = "$ENV{'DATA_DIR'} /$ENV{'TASK_NAME'}/from-" . get_date();140 $release_dir = "$ENV{'DATA_DIR'}${sep}$ENV{'TASK_NAME'}${sep}from-" . get_date(); 140 141 141 142 print "creating a snapshot release\n";
Note:
See TracChangeset
for help on using the changeset viewer.