Announcement

Collapse
No announcement yet.

Execute Batch-script after update

Collapse
X
  • Filter
  • Time
  • Show
Clear All
new posts

  • Execute Batch-script after update

    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

  • #2
    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.

    Comment


    • #3
      Originally posted by DougR View Post
      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.
      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)

      Comment


      • #4
        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.

        Comment


        • #5
          Originally posted by DougR View Post
          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.
          Oh all right
          than we must take the normal post-hook if we want to automaticly the compile
          Thanks for your help

          Comment

          Working...
          X