3 current_dir=$(readlink -f .)
4 if [ "$(basename $current_dir)" != "deps" ] \
5 || ! grep -q 'AC_INIT(ejabberd' ../configure.ac ; then
7 echo "This script should be run in the ejabberd 'deps' directory"
11 if [ ! -e ../config.status ] ; then
12 echo "You should first run ./configure with all wanted options."
18 [ -d "$dir" ] || continue
27 [ -d "$dir" ] || continue
29 date=$(git log --format='%cd' --date=short -1 | tr -d '-')
30 git archive --format=tar --prefix="deps/$dir/" HEAD \
31 | gzip -9 > "../ejabberd-$dir-$date.tar.gz"