mirror of
https://salsa.debian.org/freeipa-team/freeipa.git
synced 2024-12-23 15:40:01 -06:00
5ecede781b
On non-usrmerge systems (e.g., Debian), bash, mv, cp, cat, tail, keyctl, and gzip live in /bin, not /usr/bin. On usrmerge systems, /bin is a symlink to /usr/bin (or vice versa), so this has no effect. Signed-off-by: Robbie Harwood <rharwood@redhat.com> Reviewed-By: Alexander Bokovoy <abokovoy@redhat.com> Reviewed-By: Christian Heimes <cheimes@redhat.com>
34 lines
1.0 KiB
Bash
Executable File
34 lines
1.0 KiB
Bash
Executable File
#!/bin/bash
|
|
set -o errexit
|
|
|
|
pushd "$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
|
|
|
|
test ! -x "configure" && autoreconf -i
|
|
# run configure with the same parameters as RPM build
|
|
# this makes it easy to tweak files locally and use make install
|
|
test ! -f "Makefile" && ./configure --enable-silent-rules \
|
|
--host=$(rpm -E %{_host}) \
|
|
--build=$(rpm -E %{_build}) \
|
|
--program-prefix=$(rpm -E %{?_program_prefix}) \
|
|
--prefix=$(rpm -E %{_prefix}) \
|
|
--exec-prefix=$(rpm -E %{_exec_prefix}) \
|
|
--bindir=$(rpm -E %{_bindir}) \
|
|
--sbindir=$(rpm -E %{_sbindir}) \
|
|
--sysconfdir=$(rpm -E %{_sysconfdir}) \
|
|
--datadir=$(rpm -E %{_datadir}) \
|
|
--includedir=$(rpm -E %{_includedir}) \
|
|
--libdir=$(rpm -E %{_libdir}) \
|
|
--libexecdir=$(rpm -E %{_libexecdir}) \
|
|
--localstatedir=$(rpm -E %{_localstatedir}) \
|
|
--sharedstatedir=$(rpm -E %{_sharedstatedir}) \
|
|
--mandir=$(rpm -E %{_mandir}) \
|
|
--infodir=$(rpm -E %{_infodir}) \
|
|
"$@"
|
|
make rpms
|
|
|
|
# Workaround to ignore re-generated *.po files in git repo
|
|
# See https://pagure.io/freeipa/issue/6605
|
|
git checkout po/*.po ||:
|
|
|
|
popd
|