we have a template project we often copy. so we can costumize the copy and still have a common template.
To optimize the ‘copy & initial changes’-process, i though that i can write a little script, that does the following:
- copy the project-template (in svn) to another directory in the svn
- check-out the project and do some changes (change names in some files)
- check-in the customized project
The question is: what’s the best way to do this? any experience in this? which type of script (normal batch or java)? any example code?
thanks for your answers
Here is something i put together with some information i found here.
Basically this will dump a backup of the specified source svn repo to a file, create a new repo, load the backup into it, check out the files, get a list of files that contain the string to search for, perform a regex on each of those files storing the new version in a temp location and then moving the temp file back to the original location, and finally checking the changes back into the new repo.
I haven’t fully tested this so some minor tweaking may be necessary, but the basic steps should be correct. Please let me know if i’ve made some gross miscalculation and this totally does not work.