comp.lang.idl-pvwave archive
Messages from Usenet group comp.lang.idl-pvwave, compiled by Paulo Penteado

Home » Public Forums » archive » Re: script for batch compiling
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Switch to threaded view of this topic Create a new topic Submit Reply
Re: script for batch compiling [message #73520] Fri, 12 November 2010 15:01
rogass is currently offline  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 Go to previous message
TonyL is currently offline  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
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: script for batch compiling
Next Topic: Re: display the angstrom symbol to the power of -1 in a widget_label

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ] [ PDF ]

Current Time: Sat Oct 11 01:15:23 PDT 2025

Total time taken to generate the page: 0.14689 seconds