forked from LibreELEC/LibreELEC.tv
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathautoreconf
More file actions
executable file
·36 lines (25 loc) · 1.09 KB
/
Copy pathautoreconf
File metadata and controls
executable file
·36 lines (25 loc) · 1.09 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
#!/bin/bash
# SPDX-License-Identifier: GPL-2.0-or-later
# Copyright (C) 2009-2016 Stephan Raue (stephan@openelec.tv)
# Copyright (C) 2018-present Team LibreELEC (https://libreelec.tv)
. config/options "${1}"
RECONF_DIR="${3}"
if [ ! -f "${RECONF_DIR}/configure.in" ] && [ ! -f "${RECONF_DIR}/configure.ac" ]; then
die "configure.in or configure.ac not found"
fi
if [ ! -f "${RECONF_DIR}/.autoreconf-done" ]; then
PARENT_PKG="${2}"
# lock package during autoreconf otherwise it is racy, eg. glib:host/glib:target building concurrently
pkg_lock "${PKG_NAME}" "reconf" "${PARENT_PKG}"
if [ ! -f "${RECONF_DIR}/.autoreconf-done" ]; then
pkg_lock_status "ACTIVE" "${PKG_NAME}" "reconf"
touch "${RECONF_DIR}/NEWS" "${RECONF_DIR}/AUTHORS" "${RECONF_DIR}/ChangeLog"
mkdir -p "${RECONF_DIR}/m4"
build_msg "CLR_AUTORECONF" "AUTORECONF" "${PKG_NAME}" "indent"
do_autoreconf "${RECONF_DIR}"
touch "${RECONF_DIR}/.autoreconf-done"
pkg_lock_status "UNLOCK" "${PKG_NAME}" "reconf" "configured"
else
pkg_lock_status "UNLOCK" "${PKG_NAME}" "reconf" "already configured"
fi
fi