mirror-cockpit-project-cockpit/autogen.sh
Allison Karlitskaya 76ffdd0d4a autogen.sh: drop ./autogen.sh mock
This isn't used by anything anymore.
2022-03-10 00:11:14 +01:00

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