- Check-out the upstream branch
- 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
- Change to your
flashcache-ubuntu tree
- Use
git-import-orig to suck in the new tarall
git-import-orig -u "${VERS}" ../path/to/flashcache-${VERS}.tar
- Update the changelog. Make sure you keep the current version 'format', but update the components to have the correct git revision (should match
${VERS})
- 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.