Created
June 15, 2016 14:17
-
-
Save rogeruiz/6520cec4ff1b2acaf7a435dada877462 to your computer and use it in GitHub Desktop.
A helpful rebuild script for working with Compliance Masonry and `cg-compliance`
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
#!/bin/sh | |
set -u | |
set -e | |
# When working with `cg-compliance` you'll need to run the two commands | |
# to update the compliance-masonry 'export' directory for in order for gitbooks | |
# to be aware of changes in order for gitbooks to update the server. | |
cm_path=`which compliance-masonry` | |
if [[ $cm_path == "compliance-masonry not found" ]]; then | |
echo "You don't seem to have the 'compliance-masonry' binary in your '\$PATH'" | |
echo "Peep => https://github.com/opencontrol/compliance-masonry#quick-start" | |
exit 1 | |
fi | |
time compliance-masonry get | |
echo | |
time compliance-masonry docs gitbook FedRAMP-Moderate |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Using this script
chmod +x ./path/to/script/rebuild-docs
cg-compliance
directory