1#!/bin/sh 2# 3# Create tarball from Git tag, removing and adding 4# some files. 5# 6 7set -e 8 9if [ -z "$1" ]; then 10 TAG="$(git tag --list 'fuse-3*' --sort=-taggerdate | head -1)" 11else 12 TAG="$1" 13fi 14 15echo "Creating release tarball for ${TAG}..." 16 17git checkout -q "${TAG}" 18doxygen doc/Doxyfile 19 20mkdir "${TAG}" 21 22git archive --format=tar "${TAG}" | tar -x "--directory=${TAG}" 23find "${TAG}" -name .gitignore -delete 24rm "${TAG}/make_release_tarball.sh" \ 25 "${TAG}/.travis.yml" \ 26 "${TAG}/.cirrus.yml" 27cp -a doc/html "${TAG}/doc/" 28tar -cJf "${TAG}.tar.xz" "${TAG}/" 29gpg --armor --detach-sign "${TAG}.tar.xz" 30 31PREV_TAG="$(git tag --list 'fuse-3*' --sort=-taggerdate --merged "${TAG}^"| head -1)" 32echo "Contributors from ${PREV_TAG} to ${TAG}:" 33git log --pretty="format:%an <%aE>" "${PREV_TAG}..${TAG}" | sort -u 34 35