Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7902013
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 3, 20262026-06-03T09:22:59+00:00 2026-06-03T09:22:59+00:00

I frequently (more than once a week) create new ‘projects’ on my development machine

  • 0

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:

  1. Create a project folder structure (I have a template directory structure which I copy)
  2. Clone (Mercurial) a boilerplate source code baseline into the newly created folder structure
  3. Clone another (Mercurial) repository as a sub-repository of the above baseline repository
  4. Modify .hgsub config file (Mercurial) to set up sub-repository
  5. Modify hgrc config file (Mercurial) to set up default push folder
  6. Do an initial commit (Mercurial)
  7. 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 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-03T09:23:01+00:00Added an answer on June 3, 2026 at 9:23 am

    The steps in your manual workflow can become the steps in a shell
    script quite literally. One difference is that you might use sed to
    modify files rather than open them in an editor. You’d use positional
    parameters or getopts to pass in your parameters. See man bash for
    information on those. Then come back and ask specific focused
    questions.

    — Dennis Williamson

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Is it possible to run Magento's product alerts more than once per day? I'm
While you frequently don't want one monolithic assembly for anything more than a small
I am starting to use memcache more frequently to avoid having to recalculate things
I frequently come across Windows programs that bundle in MSVCRT (or their more current
Is Lucene.Net suitable as the search engine for frequently changing content? Or more specificically,
In a method that gets called frequently, like a painting event, is it more
I frequently find myself writing code like this: List<int> list = new List<int> {
I have a huge list of data, more than 1M records in a form
I'm trying to create my first AppWidget using the AlarmManager class so that I
Suppose I read a stream of integers. The same integer may appear more than

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.