1#!/bin/bash
2
3set -e
4
5my_package=`basename ${PWD}`
6my_excludes=".git* make-release .*.swp"
7
8for xcl in ${my_excludes}; do
9  tar_cmds="${tar_cmds} --exclude ${xcl}"
10done
11
12cd ..
13tar cvzf ${my_package}.tar.gz ${tar_cmds} ${my_package}/.
14gpg --armor --sign --detach-sig --default-key FA5E6F3E ${my_package}.tar.gz
15