зеркало из https://github.com/mozilla/gecko-dev.git
26 строки
631 B
Bash
Executable File
26 строки
631 B
Bash
Executable File
#!/bin/sh
|
|
# This Source Code Form is subject to the terms of the Mozilla Public
|
|
# License, v. 2.0. If a copy of the MPL was not distributed with this
|
|
# file, You can obtain one at http://mozilla.org/MPL/2.0/.
|
|
#
|
|
|
|
set -e
|
|
set -x
|
|
|
|
# Required fetch artifact
|
|
xz_src=${MOZ_FETCHES_DIR}/xz-source
|
|
|
|
# Actual build
|
|
work_dir=`pwd`
|
|
dest_dir=${work_dir}/tmp-install
|
|
tardir=xz
|
|
|
|
cd `mktemp -d`
|
|
${xz_src}/configure --prefix=/${tardir} CFLAGS=-O2 ${configure_flags_extra} || { exit_status=$? && cat config.log && exit $exit_status ; }
|
|
export MAKEFLAGS=-j`nproc`
|
|
make
|
|
make DESTDIR=${dest_dir} install
|
|
cd ${dest_dir}
|
|
|
|
$(dirname $0)/pack.sh ${tardir}
|