mirror of
https://github.com/cockpit-project/cockpit.git
synced 2026-11-03 21:49:50 -09:00
20 lines
549 B
Bash
Executable file
20 lines
549 B
Bash
Executable file
#!/bin/sh
|
|
|
|
set -eu
|
|
|
|
srcdir="$(realpath -m "$0"/..)"
|
|
|
|
(cd "${srcdir}" && autoreconf -is --warnings obsolete)
|
|
[ -n "${NOCONFIGURE:-}" ] && exit
|
|
|
|
case "${1:-}" in
|
|
rpm)
|
|
# configure with the same flags as when building an RPM
|
|
mkdir -p tmp/rpmbuild/SPECS
|
|
tools/create-spec -v 0 -o tmp/rpmbuild/SPECS/cockpit.spec tools/cockpit.spec.in
|
|
exec rpmbuild -D '_topdir tmp/rpmbuild' -D 'make_build #' \
|
|
--build-in-place -bc tmp/rpmbuild/SPECS/cockpit.spec ;;
|
|
|
|
*)
|
|
exec "${srcdir}/configure" "$@" ;;
|
|
esac
|