Rolling a new release - kuroneko/flashcache-ubuntu GitHub Wiki

  1. Check-out the upstream branch
  2. Produce a tar archive from the stable (or whichever branch) you're tracking
    export VERS=$(git describe --always --abbrev=12)
    git archive --format=tar --prefix="flashcache-${VERS}/" -o "../flashcache-${VERS}.tar" stable_v2
    
  3. Change to your flashcache-ubuntu tree
  4. Use git-import-orig to suck in the new tarall
    git-import-orig -u "${VERS}" ../path/to/flashcache-${VERS}.tar
    
  5. Update the changelog. Make sure you keep the current version 'format', but update the components to have the correct git revision (should match ${VERS})
  6. Use git-buildpackage to build and tag the release if successful.
    git-buildpackage --git-tag -us -uc
    
    You can omit -us -uc if you have valid signing keys for GPG set up, you only intend to test the packages locally, or have some other reason to not sign the output.