Blob Blame History Raw
#!/usr/bin/sh

CLONE_DIR=`mktemp -d /tmp/evil-clone-XXXXXXX`

VERSION=`grep Version emacs-evil.spec | awk '{print $2}'`

pushd $CLONE_DIR
git clone 'https://github.com/emacs-evil/evil.git' -b $VERSION --depth 1
popd

tar cJf evil-${VERSION}.tar.xz -C $CLONE_DIR --exclude-vcs evil

rm -rf $CLONE_DIR