Autocommit of file /home/julien/.dotfiles/vim/.vim/bundle/vimtodo/make_dist.sh change...
authorJulien Valroff <julien@kirya.net>
Tue, 1 Nov 2011 08:08:08 +0000 (09:08 +0100)
committerJulien Valroff <julien@kirya.net>
Tue, 1 Nov 2011 08:08:08 +0000 (09:08 +0100)
.vim/bundle/vimtodo/make_dist.sh [new file with mode: 0755]

diff --git a/.vim/bundle/vimtodo/make_dist.sh b/.vim/bundle/vimtodo/make_dist.sh
new file mode 100755 (executable)
index 0000000..bd29ad6
--- /dev/null
@@ -0,0 +1,18 @@
+#!/bin/bash
+[[ -z $1 ]] && {
+    echo "Usage: $0 [tag]"
+    exit 1
+}
+TAG=$1
+# Strip out any 'v' from the tag when making the filename (e.g. v0.1 -> 0.1)
+VER=${TAG#v}
+
+echo "Tagging $TAG"
+git tag -s -m "Tagging $TAG" $TAG
+cd ..
+echo "Making tarball - vimtodo-$VER.tgz"
+tar cz --exclude={.gitignore,.git,make_dist.sh,vimball.vim,*.swp} \
+    --exclude=vimtodo/test/*.{msgout,out,tap} \
+    --exclude=vimtodo/doc/tags \
+    --exclude=vimtodo.vba \
+    -f vimtodo-$VER.tgz vimtodo