aboutsummaryrefslogtreecommitdiff
path: root/post_update.sh
blob: 7072c8f4e6d76c1c95a5f1cf899758dab1b2a81b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
#!/bin/sh

# $1 Path to the new version.
# $2 Path to the old version.

set -x
set -e

# if called from the external_updater, change to the new dir first
if [ "$1" != "" ]; then
    cd $1
fi

autoreconf -i && ./configure --enable-maintainer-mode --disable-debuginfod --disable-libdebuginfod --without-lzma --without-bzlib --without-zstd

# if called from the external_updater, do not apply any patches as it will do
# that for us
if [ "$2" == "" ]; then
    git apply patches/*
fi