23d6572
#!/usr/bin/sh
23d6572
b957af0
CLONE_DIR=`mktemp -d /tmp/evil-clone-XXXXXXX`
23d6572
23d6572
VERSION=`grep Version emacs-evil.spec | awk '{print $2}'`
23d6572
23d6572
pushd $CLONE_DIR
f1be3bd
git clone 'https://github.com/emacs-evil/evil.git' -b $VERSION --depth 1
23d6572
popd
23d6572
b957af0
tar cJf evil-${VERSION}.tar.xz -C $CLONE_DIR --exclude-vcs evil
23d6572
23d6572
rm -rf $CLONE_DIR