Documentation of checkout of all Bahmni GitHub repositories

Hi,

In the Bahmni wiki there is a page which explains how to checkout all the Bahmni GitHub repositories: Checkout all Bahmni source code

This page has two problems:

  1. It addresses only people who are within the Bahmni organization on GitHub.
  2. It seems like the shell snippets refers to a repository which doesn’t exist anymore.

Maybe you are interested in adopting my little helper script:

This script could then be linked from here: https://bahmni.atlassian.net/wiki/display/BAH/Setting+up+Bahmni+Dev+Environment#SettingupBahmniDevEnvironment-Clonethecode

Hi @janux

I think the page itself is no longer needed. I have Archived it: https://bahmni.atlassian.net/wiki/display/BAH/Checkout+all+Bahmni+source+code

Your script looks good. I will request @binduak to try it out once, and then merge it. Then we could update the documentation page you suggest to mention this script. Thanks!

Hi @binduak, the pull request was broken for a week as I stumbled across a strange behaviour of the unexpand command on the attempt to replace the spaces in my file with tabs:

# This command extinguished the contents of the file
unexpand -t 4 -a dev/clone-bahmni-repos.sh > dev/clone-bahmni-repos.sh

# If the output redirection is not in the same file, it will work out :/ 
unexpand -t 4 -a dev/clone-bahmni-repos.sh.bak > dev/clone-bahmni-repos.sh

Here is the new pull request:

You could paste this command into your terminal, to try the script out:

{
curl -s https://raw.githubusercontent.com/jmewes/utilities/0d05d345b46841b67bee3b78fc4edc161bba5114/dev/clone-bahmni-repos.sh > /tmp/clone-bahmni-repos.sh
bash /tmp/clone-bahmni-repos.sh -d /tmp/src/bahmni
}

If jq is not yet install on your laptop, you can install it with brew install jq on MacOS. (Yes, you surely want to have it installed. This tool is awesome for processing JSON in shell scripts.)

Hi @janux, Thanks for the pull request. We have merged the pull request and updated the Setting up Bahmni Dev Environment page with the script details.

1 Like