StoreRevNumHooks.bat 1020 B

1234567891011121314151617181920212223242526272829303132333435
  1. @ECHO OFF
  2. REM *************************************************************
  3. REM * Batch-File to store the revision number in source files. *
  4. REM * Called by Post-Commit and Post-Update hook scripts. *
  5. REM * *
  6. REM * SubWCRev (located in tortoisesvn\bin) does the work: *
  7. REM * Param1 is the Path to the working copy *
  8. REM * Param2 is the Template file *
  9. REM * Param3 is the name of the Output file *
  10. REM *************************************************************
  11. IF (%1)==(start) GOTO DoIt
  12. IF NOT (%6)==() GOTO PostCommit
  13. IF NOT (%5)==() GOTO PostUpdate
  14. ECHO Invalid arguments
  15. EXIT /B 1
  16. GOTO End
  17. :PostCommit
  18. ECHO Post Commit Hook Called
  19. CALL %0 start %6
  20. GOTO End
  21. :PostUpdate
  22. ECHO Post Update Hook Called
  23. CALL %0 start %5
  24. GOTO End
  25. :DoIt
  26. SET IndyLib="C:\Development\Projects\Indy\Indy 10\Source\Lib"
  27. CALL %IndyLib%\StoreRevNum.bat %2
  28. :End