1*7304104dSAndroid Build Coastguard Worker#!/bin/sh 2*7304104dSAndroid Build Coastguard Worker 3*7304104dSAndroid Build Coastguard Worker# $1 Path to the new version. 4*7304104dSAndroid Build Coastguard Worker# $2 Path to the old version. 5*7304104dSAndroid Build Coastguard Worker 6*7304104dSAndroid Build Coastguard Workerset -x 7*7304104dSAndroid Build Coastguard Workerset -e 8*7304104dSAndroid Build Coastguard Worker 9*7304104dSAndroid Build Coastguard Worker# if called from the external_updater, change to the new dir first 10*7304104dSAndroid Build Coastguard Workerif [ "$1" != "" ]; then 11*7304104dSAndroid Build Coastguard Worker cd $1 12*7304104dSAndroid Build Coastguard Workerfi 13*7304104dSAndroid Build Coastguard Worker 14*7304104dSAndroid Build Coastguard Workerautoreconf -i && ./configure --enable-maintainer-mode --disable-debuginfod --disable-libdebuginfod --without-lzma --without-bzlib 15*7304104dSAndroid Build Coastguard Worker 16*7304104dSAndroid Build Coastguard Worker# if called from the external_updater, do not apply any patches as it will do 17*7304104dSAndroid Build Coastguard Worker# that for us 18*7304104dSAndroid Build Coastguard Workerif [ "$2" == "" ]; then 19*7304104dSAndroid Build Coastguard Worker git apply patches/* 20*7304104dSAndroid Build Coastguard Workerfi 21