Execute Batch-script after update

PatrickZemke
PatrickZemke
Hello everyone,  first of all i want say sorry for my bad english :(  I have thie followeing question: At work we use TortoisSVN and a SCSS compiler. Now we have a lot of scss files and after each update wie must compile all scss files new to see the changes. Is it possible (with TortoisSVN or the bash command svn) to execute a batch-script witch is compile the scss files (maybe only if a scss file hast change). The batch-script we will to write but want to have all automaticlly.  If you have any other idee to do this (for example with node) you can tell it and i'll try it :)   OS: Windows 7 SVN-Version: 1.9.2 TortoisSVN-Version: 1.9.2, Build 26806  best reguards Patrick

Last updated

DougR
DougR
This would be a job for a post-commit hook - which runs on the server. The post-commit hook will be run every time a commit has succeeded (well, not 100% guaranteed but nearly so). The post-commit hook could RPC to some client box to initiate a "svn update; build" process. This type of thing is done a lot.  The alternative - which is not quite as efficient - is to write a script that runs on a client and periodically updates a working copy and, if an update was done, runs a build.
PatrickZemke
PatrickZemke
DougR;n79633This would be a job for a post-commit hook - which runs on the server. The post-commit hook will be run every time a commit has succeeded (well, not 100% guaranteed but nearly so). The post-commit hook could RPC to some client box to initiate a "svn update; build" process. This type of thing is done a lot.  The alternative - which is not quite as efficient - is to write a script that runs on a client and periodically updates a working copy and, if an update was done, runs a build.
  Thanks for the help :) Do you know, it it possible to configurate this post-commit hook that only do this on changes of spezial kind of files? (only if the file have the .scss extension)
DougR
DougR
There is no way to have the post-hook only fire for changes to specific files or file types. However, the post-hook can check to see what files/directories changed and then take action only per your specification.
PatrickZemke
PatrickZemke
DougR;n79639There is no way to have the post-hook only fire for changes to specific files or file types. However, the post-hook can check to see what files/directories changed and then take action only per your specification.
  Oh all right than we must take the normal post-hook if we want to automaticly the compile :) Thanks for your help :):)

1-5 of 5

Reply to this discussion

You cannot edit posts or make replies: You should be logged in before you can post.