summaryrefslogtreecommitdiffstats
path: root/repos/autotools/autotools-git/m4/PREP_TARBALL
blob: 1bddf427b3051564788fcb68f65d135ca780d683 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
#!/bin/bash -x

test -z "$rev" && rev=origin/master

if test ! -d "upstream"; then
    git clone http://git.savannah.gnu.org/r/m4.git upstream
    pushd upstream >/dev/null
else
    pushd upstream >/dev/null
    git pull
    ( cd build-aux/gnulib ; git pull )
fi

git reset --hard $rev

git am ../m4-patches/*.patch

./bootstrap && ./configure && make && make dist

for i in `ls -1 *.tar.gz`; do
    mv $i ../$i
    rm -rf $i
    break
done

popd