Re: script for batch compiling [message #73520] |
Fri, 12 November 2010 15:01 |
rogass
Messages: 200 Registered: April 2008
|
Senior Member |
|
|
On 12 Nov., 23:31, TonyL <anthony.legg...@bigpond.com> wrote:
> On Nov 13, 9:13 am, chris <rog...@googlemail.com> wrote:
>
>> Hi there,
>> does anybody have a script or maybe an idea, how to compile, to
>> resolve dependencies and to generate save files with the same name of
>> the pro of an entire directory full of pro's?
>
>> Thanks in advance
>
>> CR
>
> Try this...our key procedures have a 'dst' prefix in their names to
> make it work..functions that are referred to inside those procedures
> are resolved even those without the dst prefix.
>
> ;+
> ; Build script for Decision Support Tool (DST)
> ;-
>
> .full
>
> sourceFiles = FILE_SEARCH('dst*.pro')
>
> sourceFiles = FILE_BASENAME(sourceFiles, '.pro')
>
> nFiles = N_ELEMENTS(sourceFiles)
>
> FOR iFile = 0, nFiles-1 DO RESOLVE_ROUTINE, sourceFiles[iFile], /
> Either, /Compile_full_file
>
> RESOLVE_ALL
>
> SAVE, /ROUTINES, /Compress, FILENAME='dst.sav'
>
> Tony
Very cool - THANKS
CR
|
|
|
Re: script for batch compiling [message #73522 is a reply to message #73520] |
Fri, 12 November 2010 14:31  |
TonyL
Messages: 14 Registered: November 2008
|
Junior Member |
|
|
On Nov 13, 9:13 am, chris <rog...@googlemail.com> wrote:
> Hi there,
> does anybody have a script or maybe an idea, how to compile, to
> resolve dependencies and to generate save files with the same name of
> the pro of an entire directory full of pro's?
>
> Thanks in advance
>
> CR
Try this...our key procedures have a 'dst' prefix in their names to
make it work..functions that are referred to inside those procedures
are resolved even those without the dst prefix.
;+
; Build script for Decision Support Tool (DST)
;-
.full
sourceFiles = FILE_SEARCH('dst*.pro')
sourceFiles = FILE_BASENAME(sourceFiles, '.pro')
nFiles = N_ELEMENTS(sourceFiles)
FOR iFile = 0, nFiles-1 DO RESOLVE_ROUTINE, sourceFiles[iFile], /
Either, /Compile_full_file
RESOLVE_ALL
SAVE, /ROUTINES, /Compress, FILENAME='dst.sav'
Tony
|
|
|