|
Revision 13, 1.3 kB
(checked in by gary, 3 years ago)
|
|
adjust file properties for ascii and perl files - no source change
|
-
Property svn:eol-style set to
native
-
Property svn:executable set to
*
|
| Line | |
|---|
| 1 | |
|---|
| 2 | |
|---|
| 3 | |
|---|
| 4 | |
|---|
| 5 | |
|---|
| 6 | |
|---|
| 7 | $master_dir = "c:/projects/cloudy/current/unix/"; |
|---|
| 8 | |
|---|
| 9 | |
|---|
| 10 | |
|---|
| 11 | use File::Copy; |
|---|
| 12 | |
|---|
| 13 | |
|---|
| 14 | |
|---|
| 15 | |
|---|
| 16 | while( defined( $input = glob("*.fluxes") ) ) |
|---|
| 17 | { |
|---|
| 18 | print( "$input going to " ); |
|---|
| 19 | $output = "$master_dir"."ncx/"."$input"; |
|---|
| 20 | print("$output\n"); |
|---|
| 21 | |
|---|
| 22 | system "dos2unix < $input > $output"; |
|---|
| 23 | } |
|---|
| 24 | |
|---|
| 25 | |
|---|
| 26 | while( defined( $input = glob("*.ascii") ) ) |
|---|
| 27 | { |
|---|
| 28 | print( "$input going to " ); |
|---|
| 29 | $output = "$master_dir"."ncx/"."$input"; |
|---|
| 30 | print("$output\n"); |
|---|
| 31 | |
|---|
| 32 | system "dos2unix < $input > $output"; |
|---|
| 33 | } |
|---|
| 34 | |
|---|
| 35 | |
|---|
| 36 | while( defined( $input = glob("*.list") ) ) |
|---|
| 37 | { |
|---|
| 38 | print( "$input going to " ); |
|---|
| 39 | $output = "$master_dir"."ncx/"."$input"; |
|---|
| 40 | print("$output\n"); |
|---|
| 41 | |
|---|
| 42 | system "dos2unix < $input > $output"; |
|---|
| 43 | } |
|---|
| 44 | |
|---|
| 45 | |
|---|
| 46 | |
|---|
| 47 | print("\n=========================\n"); |
|---|
| 48 | print("All files have been copies to ncx subdir\n"); |
|---|
| 49 | print("=========================\n"); |
|---|
| 50 | |
|---|
| 51 | print( "data copy complete\n"); |
|---|