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:
- It addresses only people who are within the Bahmni organization on GitHub.
- 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:
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!
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
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.)
Thanks for the pull request. We have merged the pull request and updated the Setting up Bahmni Dev Environment page with the script details.