Skip to content

Instantly share code, notes, and snippets.

@inancsevinc
Created April 12, 2012 14:01
Show Gist options
  • Save inancsevinc/2367505 to your computer and use it in GitHub Desktop.
Save inancsevinc/2367505 to your computer and use it in GitHub Desktop.
Batch file for exporting subversion repository and checking in to clearcase
@echo off
SET CC_VOB_DIR=
SET CC_VIEW_TAG=
SET CC_COMPONENT_NAME=
SET CC_VOB_NAME=
SET TMP_SVN_EXPORT_DIR=
SET SVN_URL=
@echo deleting directory %TMP_SVN_EXPORT_DIR%
rd /S /Q %TMP_SVN_EXPORT_DIR%
svn export %SVN_URL% %TMP_SVN_EXPORT_DIR% --force
clearfsimport -nsetevent -recurse -rmname %TMP_SVN_EXPORT_DIR% %CC_VOB_DIR%
IF %1==-b (
cleartool mkbl -view %CC_VIEW_TAG% -full -component %CC_COMPONENT_NAME%@\%CC_VOB_NAME% %CC_COMPONENT_NAME%
)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment