"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "run_release.sh" between
xdelta3-3.0.10.tar.gz and xdelta3-3.0.11.tar.gz

About: xdelta is a tool and library for differential compression (supports VCDIFF encoding and decoding).

run_release.sh  (xdelta3-3.0.10):run_release.sh  (xdelta3-3.0.11)
skipping to change at line 15 skipping to change at line 15
# TODO replace w/ wget # TODO replace w/ wget
LZMA="xz-5.2.1" LZMA="xz-5.2.1"
LZMA_FILE="${SRCDIR}/../${LZMA}.tar.xz" LZMA_FILE="${SRCDIR}/../${LZMA}.tar.xz"
MAKEFLAGS="-j 10" MAKEFLAGS="-j 10"
BUILDDIR=${SRCDIR}/build BUILDDIR=${SRCDIR}/build
LZMASRC=${BUILDDIR}/${LZMA} LZMASRC=${BUILDDIR}/${LZMA}
MINGW_CFLAGS="-DEXTERNAL_COMPRESSION=0 -DVCDIFF_TOOLS=0" NONWIN_CFLAGS=""
MINGW_CFLAGS="${MINGW_CFLAGS} -DXD3_WIN32=1 -DSHELL_TESTS=0" MINGW_CFLAGS="-DEXTERNAL_COMPRESSION=0 -DXD3_WIN32=1 -DSHELL_TESTS=0"
MYOS=`uname` MYOS=`uname`
DATE=`date` DATE=`date`
CLEAN="" CLEAN=""
LINUXTGTS="" LINUXTGTS=""
LINUXTEST1="" LINUXTEST1=""
LINUXTEST2="" LINUXTEST2=""
skipping to change at line 43 skipping to change at line 43
OSXTEST2="" OSXTEST2=""
XTMP="/tmp" XTMP="/tmp"
if [ "${TMP}" != "" ]; then if [ "${TMP}" != "" ]; then
XTMP="${TMP}" XTMP="${TMP}"
fi fi
if [ "${TMPDIR}" != "" ]; then if [ "${TMPDIR}" != "" ]; then
XTMP="${TMPDIR}" XTMP="${TMPDIR}"
fi fi
find build -type f 2> /dev/null | xargs rm find build -type f 2> /dev/null | xargs rm -f
function setup { function setup {
libtoolize
automake --add-missing
aclocal -I m4 aclocal -I m4
automake automake
automake --add-missing autoheader
autoconf autoconf
} }
function try { function try {
local w=$1 local w=$1
shift shift
local dir=$1 local dir=$1
shift shift
echo -n " ${w} ..." echo -n " ${w} ... "
(cd "${dir}" && "$@" >${w}.stdout 2>${w}.stderr) (cd "${dir}" && "$@" >${w}.stdout 2>${w}.stderr)
local s=$? local s=$?
if [ ${s} -eq 0 ]; then if [ ${s} -eq 0 ]; then
echo " success" echo " success"
else else
echo " failed!" echo " failed!"
echo "Error $1 in ${dir}" >&2 echo "Error $1 in ${dir}" >&2
fi fi
return ${s} return ${s}
} }
skipping to change at line 91 skipping to change at line 93
--disable-shared \ --disable-shared \
"CFLAGS=${march}" \ "CFLAGS=${march}" \
"CXXFLAGS=${march}" \ "CXXFLAGS=${march}" \
"LDFLAGS=${march}" "LDFLAGS=${march}"
if [ $? -ne 0 ]; then if [ $? -ne 0 ]; then
return return
fi fi
try build-lzma ${target} make ${MAKEFLAGS} try build-lzma ${target} make ${MAKEFLAGS}
if [ $? -ne 0 ]; then if [ $? -ne 0 ]; then
return return
fi fi
try install-lzma ${target} make install try install-lzma ${target} make install
if [ $? -ne 0 ]; then if [ $? -ne 0 ]; then
return return
fi fi
} }
function buildit { function buildit {
local host=$1 local host=$1
local march=$2 local march=$2
local offsetbits=$3 local offsetbits=$3
local cargs=$4 local cargs=$4
local largs=$5 local afl=$5
local BM="${host}${march}" local BM="${host}${march}"
local USECC="${CC}"
local USECXX="${CXX}"
local LIBBM="${BM}"
if [ "${afl}" = "1" ]; then
USECC="afl-gcc"
USECXX="afl-g++"
BM="${BM}-afl"
fi
local D="build/${BM}/xoff${offsetbits}" local D="build/${BM}/xoff${offsetbits}"
local BMD="${BM}-${offsetbits}" local BMD="${BM}-${offsetbits}"
local FULLD="${SRCDIR}/${D}" local FULLD="${SRCDIR}/${D}"
local CFLAGS="${march} ${cargs} -g -I${SRCDIR}/build/lib-${BM}/include" local CFLAGS="${march} ${cargs} -I${SRCDIR}/build/lib-${LIBBM}/include"
local CXXFLAGS="${march} ${cargs} -g -I${SRCDIR}/build/lib-${BM}/include" local CXXFLAGS="${march} ${cargs} -I${SRCDIR}/build/lib-${LIBBM}/include"
local LDFLAGS="${largs} ${march} -L${SRCDIR}/build/lib-${BM}/lib" local CPPFLAGS="-I${SRCDIR}/build/lib-${LIBBM}/include"
local LDFLAGS="${march} -L${SRCDIR}/build/lib-${LIBBM}/lib"
mkdir -p ${D} mkdir -p ${D}
echo " ... ${BMD}" echo " ... ${BMD}"
cat >> Makefile.test <<EOF cat >> Makefile.test <<EOF
# ${BMD} # ${BMD}
# ${CFLAGS} # ${CFLAGS}
.PHONY: build-${BMD} .PHONY: build-${BMD}
build-${BMD}: build-${BMD}:
(cd ${D} && make all) (cd ${D} && make all && make install)
.PHONY: clean-${BMD} .PHONY: clean-${BMD}
clean-${BMD}: clean-${BMD}:
(cd ${D} && make clean) (cd ${D} && make clean)
.PHONY: regtest-${BMD} .PHONY: regtest-${BMD}
regtest-${BMD}: regtest-${BMD}:
(cd ${D} && ./xdelta3regtest 1> \${TMP}/regtest.${BMD}.stdout 2> \${TMP}/ regtest.${BMD}.stderr) (cd ${D} && ./xdelta3regtest 1> \${TMP}/regtest.${BMD}.stdout 2> \${TMP}/ regtest.${BMD}.stderr)
.PHONY: selftest-${BMD} .PHONY: selftest-${BMD}
skipping to change at line 165 skipping to change at line 179
CLEAN="${CLEAN} clean-${BMD}" CLEAN="${CLEAN} clean-${BMD}"
try configure-xdelta ${FULLD} ${SRCDIR}/configure \ try configure-xdelta ${FULLD} ${SRCDIR}/configure \
--host=${host} \ --host=${host} \
--prefix=${FULLD} \ --prefix=${FULLD} \
--enable-static \ --enable-static \
--disable-shared \ --disable-shared \
--enable-debug-symbols \ --enable-debug-symbols \
"CFLAGS=${CFLAGS}" \ "CFLAGS=${CFLAGS}" \
"CXXFLAGS=${CXXFLAGS}" \ "CXXFLAGS=${CXXFLAGS}" \
"LDFLAGS=${LDFLAGS}" "CPPFLAGS=${CPPFLAGS}" \
"LDFLAGS=${LDFLAGS}" \
"CC=${USECC}" \
"CXX=${USECXX}"
if [ $? -ne 0 ]; then if [ $? -ne 0 ]; then
return return
fi fi
try build-xdelta ${FULLD} make ${MAKEFLAGS} all # try build-xdelta ${FULLD} make ${MAKEFLAGS} all
if [ $? -ne 0 ]; then # if [ $? -ne 0 ]; then
return # return
fi # fi
try install-xdelta ${FULLD} make install # try install-xdelta ${FULLD} make install
} }
function buildall { function buildall {
echo "" echo ""
echo "Host $1$2" echo "Host $1$2 afl=$4"
echo "" echo ""
buildlzma "$1" "$2" buildlzma "$1" "$2"
buildit "$1" "$2" 32 "-DXD3_USE_LARGEFILE64=0 $3" "$4" buildit "$1" "$2" 32 "-DXD3_USE_LARGEFILE64=0 $3" "$4"
buildit "$1" "$2" 64 "-DXD3_USE_LARGEFILE64=1 $3" "$4" buildit "$1" "$2" 64 "-DXD3_USE_LARGEFILE64=1 $3" "$4"
} }
setup setup
try untar-lzma ${BUILDDIR} tar -xvf "${LZMA_FILE}" try untar-lzma ${BUILDDIR} tar -xvf "${LZMA_FILE}"
if [ $? -ne 0 ]; then if [ $? -ne 0 ]; then
exit $? exit $?
fi fi
cat > Makefile.test <<EOF cat > Makefile.test <<EOF
# Auto-generated ${DATE} -*- Mode: Makefile -*- # Auto-generated ${DATE} -*- Mode: Makefile -*-
TMP = ${XTMP} TMP = ${XTMP}
all: linux windows apple
EOF EOF
# Native compiles # Native compiles
if [ "${MYOS}" == "Linux" ]; then if [ "${MYOS}" == "Linux" ]; then
# Linux # Linux
buildall x86_64-pc-linux-gnu -m32 buildall x86_64-pc-linux-gnu -m32 "${NONWIN_CFLAGS}" "0"
buildall x86_64-pc-linux-gnu -m64 buildall x86_64-pc-linux-gnu -m32 "${NONWIN_CFLAGS}" "1"
buildall x86_64-pc-linux-gnu -m64 "${NONWIN_CFLAGS}" "0"
buildall x86_64-pc-linux-gnu -m64 "${NONWIN_CFLAGS}" "1"
fi fi
if [ "${MYOS}" == "Darwin" ]; then if [ "${MYOS}" == "Darwin" ]; then
# OS X # OS X
buildall x86_64-apple-darwin -m32 buildall x86_64-apple-darwin -m32 "${NONWIN_CFLAGS}" "0"
buildall x86_64-apple-darwin -m64 buildall x86_64-apple-darwin -m64 "${NONWIN_CFLAGS}" "0"
fi fi
# Cross compile # Cross compile
buildall i686-w64-mingw32 -mconsole "${MINGW_CFLAGS}" buildall i686-w64-mingw32 -mconsole "${MINGW_CFLAGS}" "0"
buildall x86_64-w64-mingw32 -mconsole "${MINGW_CFLAGS}" buildall x86_64-w64-mingw32 -mconsole "${MINGW_CFLAGS}" "0"
cat >> Makefile.test <<EOF cat >> Makefile.test <<EOF
all: linux windows apple
clean: ${CLEAN} clean: ${CLEAN}
.PHONY: linux windows apple .PHONY: linux windows apple
.PHONY: linux-build windows-build apple-build .PHONY: linux-build windows-build apple-build
.PHONY: linux-selftest windows-selftest apple-selftest .PHONY: linux-selftest windows-selftest apple-selftest
.PHONY: linux-regtest windows-regtest apple-regtest .PHONY: linux-regtest windows-regtest apple-regtest
linux: linux-build linux-selftest linux-regtest linux: linux-build linux-selftest linux-regtest
windows: windows-build windows-selftest windows-regtest windows: windows-build windows-selftest windows-regtest
apple: apple-build apple-selftest apple-regtest apple: apple-build apple-selftest apple-regtest
 End of changes. 20 change blocks. 
26 lines changed or deleted 46 lines changed or added

Home  |  About  |  All  |  Newest  |  Fossies Dox  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTPS