Two thoughts.  First, sounds like a job for "make" on the development
machine.  That way only the dependencies will be updated as needed.
Make is usually used to rebuild only the parts of a developing program
that have actually changed.

Second, you can use "rsync" to transfer the generated files to the host.
Rsync only updates the files that have changed, and only transfers the
parts of the files that have actually changed.  Pretty handy stuff.  In
fact, depending on your application, (like if bandwidth is your
principal concern) this may be all you need.
-  
Matt Warnock, President
RidgeCrest Herbals, Inc.


On Thu, 2008-11-27 at 17:11 -0500, S P Arif Sahari Wibowo wrote:
> Hi!
> 
> Is there anyway to list all files a component depended to 
> (either included or inherited) for the purpose of getting the 
> latest modification timestamp of all those files?
> 
> Here is why I am asking: I use Mason to create a colletion of 
> static pages from a set of components. This static pages will 
> then uploaded to the actual site. However, I would like to 
> minimize upload only for modified files only. The only way I can 
> think of is to save the generated content into a temporary file, 
> compare the temporary file with the existing page, and then 
> replace the page with the temporary file if there is any 
> difference. But obviously quite a work there.
> 
> I am thinking about deciding to replace file based on last 
> modification time of the component. However, the components may 
> include other files and inherit from other components, and if 
> the other files or components were modified, the file should 
> still be generated. Hence my question above.
> 
> Let me know your thought.
> 
> Thanks!
> 



-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
Mason-users mailing list
Mason-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mason-users

Reply via email to