Skip to content

Instantly share code, notes, and snippets.

@raphink
Created June 2, 2014 11:05
Show Gist options
  • Select an option

  • Save raphink/601cabfed6e4024bcc8a to your computer and use it in GitHub Desktop.

Select an option

Save raphink/601cabfed6e4024bcc8a to your computer and use it in GitHub Desktop.
PROFILE=mcollective
TARBALL=montarball.tar.gz
APT_DIR=packages/apt
# Get modules
# TODO: versions?
rake spec_prep
# Run tests
#rake spec_standalone
# Generate packages cache
# TODO: filters
reprepro -b $APT_DIR update
reprepro -b $APT_DIR export
# Generate PDF README
# TODO: branding
pandoc README.md -o README.pdf
# TODO: add script to run puppet
# TODO: install puppet?
tar cvzfh $TARBALL \
README.md README.pdf \
packages --exclude $APT_DIR/conf --exclude $APT_DIR/lists --exclude $APT_DIR/db \
-C spec/fixtures modules/ --exclude modules/$PROFILE/spec/fixtures/modules \
--exclude $TARBALL
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment