snapraid/makedist.sh
Andrea Mazzoleni 1f2c0fcc22 Get version from the git revision
This ensures to properly differntiate all the beta releases.
2015-11-24 19:34:21 +01:00

38 lines
448 B
Bash
Executable file

#!/bin/sh
#
make distclean
# Reconfigure (with force) to get the latest revision from git
autoreconf -f
if ! ./configure.windows-x86; then
exit 1
fi
if ! test "x$1" = "x-f"; then
if ! make check; then
exit 1
fi
fi
if ! make distwindows-x86 distclean; then
exit 1
fi
if ! ./configure.windows-x64; then
exit 1
fi
if ! make distwindows-x64 distclean; then
exit 1
fi
if ! ./configure ; then
exit 1
fi
if ! make dist; then
exit 1
fi