]>
Commit | Line | Data |
---|---|---|
e2bda3a7 JK |
1 | #!/bin/sh -ex |
2 | ||
3 | current_dir=$(readlink -f .) | |
4 | if [ "$(basename $current_dir)" != "deps" ] \ | |
5 | || ! grep -q 'AC_INIT(ejabberd' ../configure.ac ; then | |
6 | ||
7 | echo "This script should be run in the ejabberd 'deps' directory" | |
8 | exit 1 | |
9 | fi | |
10 | ||
be8e8142 JK |
11 | if [ -e ../config.status ] ; then |
12 | echo "You should first run ./configure with all wanted options." | |
13 | exit 1 | |
14 | fi | |
15 | ||
e2bda3a7 JK |
16 | rm -f .got || : |
17 | for dir in * ; do | |
18 | [ -d "$dir" ] || continue | |
19 | rm -rf "$dir" | |
20 | done | |
21 | ||
22 | cd .. | |
23 | ./rebar get-deps | |
24 | cd deps | |
25 | ||
26 | for dir in * ; do | |
27 | [ -d "$dir" ] || continue | |
28 | cd $dir | |
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" | |
32 | cd .. | |
33 | done |