]>
git.ipfire.org Git - thirdparty/freeswitch.git/blob - build/build_patch.sh
5 printf "usage: %s [-u <remote>] [-r <ref>] [<patch-urls> ...]\n" "$0" >&2
9 printf "error: %s\n" "$1" >&2
16 while getopts "hnr:u:" o
; do
21 u
) remote
="$OPTARG" ;;
26 if ! which git
>/dev
/null
; then
27 printf "error: please install git\n">&2
29 if ! which wget
>/dev
/null
; then
30 printf "error: please install wget\n">&2
33 now
=$
(date -u +%Y
%m
%dT
%H
%M
%SZ
)
34 git clean
-fdx || err
"failed"
35 git
reset --hard "$ref" \
37 $dopull && (git pull
"$remote" || err
"failed to pull")
39 wget
-O - "$patch" | git am
41 printf '# Building FreeSWITCH %s\n' "$(git describe HEAD)" \
43 (.
/bootstrap.sh
&& .
/configure
-C && make VERBOSE
=1) 2>&1 \
44 |
tee -a ${now}-fsbuild.log