root/branches/newmole/scripts/copy_data_2_ldrive.pl
| Revision 324, 1.0 kB (checked in by gary, 3 years ago) | |
|---|---|
|
|
| Line | |
|---|---|
| 1 | #!/usr/bin/perl/ |
| 2 | |
| 3 | # this script copies the cloudy data files from the original source to the current machine |
| 4 | |
| 5 | # the disk drive we will use for the network machine |
| 6 | $c = "M"; |
| 7 | |
| 8 | # try using net use net use u: \\server-name\share-name\ |
| 9 | system( "net use $c: \\\\cumulus\\cumulus_c\$ /persistent:no" ); |
| 10 | |
| 11 | # the unix copy of the data directory on the local machine |
| 12 | $local_copy="c:\\projects\\cloudy\\trunk\\unix\\data"; |
| 13 | |
| 14 | # |
| 15 | # the unix copy on the network machine |
| 16 | $original_data="$c:\\projects\\cloudy\\trunk\\unix\\data"; |
| 17 | |
| 18 | # now copy unix eol data so lightning can use gcc |
| 19 | # /y suppresses asking to confirm overwriting a file |
| 20 | system( "xcopy $original_data $local_copy /y" ); |
| 21 | |
| 22 | |
| 23 | # the win copy of the data directory on the local machine |
| 24 | $local_copy="c:\\projects\\cloudy\\trunk\\data"; |
| 25 | |
| 26 | # |
| 27 | # the win copy on the network machine |
| 28 | $original_data="$c:\\projects\\cloudy\\trunk\\data"; |
| 29 | |
| 30 | # now copy win eol data so lightning can use vs |
| 31 | # /y suppresses asking to confirm overwriting a file |
| 32 | system( "xcopy $original_data $local_copy /y" ); |
Note: See TracBrowser
for help on using the browser.
