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
28 [ -d "$dir" ] || continue
30 date=$(git log --format='%cd' --date=short -1 | tr -d '-')
31 git archive --format=tar --prefix="deps/$dir/" HEAD \
32 | gzip -9 > "../ejabberd-$dir-$date.tar.gz"
34 echo -e "Source${nr}:\tejabberd-$dir-$date.tar.gz"
35 echo -e "# Source${nr}-md5:\t$(set -- $(md5sum "ejabberd-$dir-$date.tar.gz"); echo $1)"