]> wimlib.net Git - wimlib/blob - tools/make-releases
configure.ac: generate version number from git commit and tags
[wimlib] / tools / make-releases
1 #!/bin/bash
2
3 set -e
4
5 MAKE="make -j$(grep -c processor /proc/cpuinfo)"
6
7 export CFLAGS="-O2 -Wall -Werror"
8
9 autoreconf -i -f # make sure the version number gets updated
10
11 ./configure && $MAKE distcheck
12
13 # Recompress with 7-Zip
14 gzfile=$(ls wimlib-*.tar.gz | tail -1)
15 tarfile=${gzfile%.gz}
16 gunzip $gzfile
17 7z -mx9 a $gzfile $tarfile
18 rm -f $tarfile
19
20 for arch in i686 x86_64; do
21         ./tools/make-windows-release $arch
22 done