View clone-rm-dx-from-doi.sh
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bash | |
# Semi-automatically update dx.doi.org links on GitHub to https://doi.org. | |
# | |
# Usage: | |
# 1. Copy this gist into a local folder of yours (e.g. ~/forks/). | |
# 2. Make it executable with `chmod +x ~/path/to/clone-rm-dx.sh` | |
# 3. Install the gfork Node.js package and its dependencies. | |
# 4. Find target repos on https://github.com/search?o=desc&q=dx.doi&s=indexed&type=Code&utf8=%E2%9C%93 | |
# 5. Insepct the code: can `dx.doi.org` be savely updated? Inspect tests, |