I frequently (more than once a week) create new ‘projects’ on my development machine (Mac). I’m trying to streamline the workflow and automate what I do manually now:
- Create a project folder structure (I have a template directory structure which I copy)
- Clone (Mercurial) a boilerplate source code baseline into the newly created folder structure
- Clone another (Mercurial) repository as a sub-repository of the above baseline repository
- Modify .hgsub config file (Mercurial) to set up sub-repository
- Modify hgrc config file (Mercurial) to set up default push folder
- Do an initial commit (Mercurial)
- Create a series of aliases in my bash_profile
What’s the best (or easiest) way to script the above workflow? I’d like to pass a couple of parameters such as project name, and sub-repository name, etc.
Is this something that I can easily to in a shell script? Automator? Python script?
Thanks.
Prembo.
1 Answer