2015-10-18 15:10:11 +03:00
|
|
|
#!/bin/bash
|
|
|
|
#
|
|
|
|
# Midnight Commander - build and test common configurations
|
|
|
|
#
|
|
|
|
# Copyright (C) 2015
|
|
|
|
# The Free Software Foundation, Inc.
|
|
|
|
#
|
|
|
|
# Written by:
|
|
|
|
# Slava Zanko <slavazanko@gmail.com>, 2015
|
|
|
|
# Yury V. Zaytsev <yury@shurup.com>, 2015
|
|
|
|
#
|
|
|
|
# This file is part of the Midnight Commander.
|
|
|
|
#
|
|
|
|
# The Midnight Commander is free software: you can redistribute it
|
|
|
|
# and/or modify it under the terms of the GNU General Public License as
|
|
|
|
# published by the Free Software Foundation, either version 3 of the License,
|
|
|
|
# or (at your option) any later version.
|
|
|
|
#
|
|
|
|
# The Midnight Commander is distributed in the hope that it will be useful,
|
|
|
|
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
|
# GNU General Public License for more details.
|
|
|
|
#
|
|
|
|
# You should have received a copy of the GNU General Public License
|
|
|
|
# along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|
|
|
|
|
|
|
set -e
|
|
|
|
set -x
|
|
|
|
|
|
|
|
function do_build() {
|
|
|
|
make
|
2023-08-13 21:39:36 +03:00
|
|
|
make -k check
|
2015-10-18 15:10:11 +03:00
|
|
|
make install
|
|
|
|
}
|
|
|
|
|
2016-03-04 18:48:17 +03:00
|
|
|
# Build distribution archive
|
|
|
|
mkdir -p distrib && cd $_
|
|
|
|
|
|
|
|
../configure
|
|
|
|
make dist-bzip2
|
|
|
|
|
|
|
|
DISTFILE=$(ls mc-*.tar.bz2)
|
2016-03-05 14:22:27 +03:00
|
|
|
DISTDIR=$(basename "$DISTFILE" .tar.bz2)
|
2016-03-04 18:48:17 +03:00
|
|
|
|
|
|
|
tar -xjf $DISTFILE
|
|
|
|
cd $DISTDIR
|
|
|
|
|
2015-10-18 15:10:11 +03:00
|
|
|
# Build default configuration (S-Lang)
|
|
|
|
mkdir -p build-default && pushd $_
|
|
|
|
|
|
|
|
../configure \
|
|
|
|
--prefix="$(pwd)/INSTALL_ROOT" \
|
|
|
|
--with-screen=slang \
|
|
|
|
--enable-maintainer-mode \
|
|
|
|
--enable-mclib \
|
|
|
|
--enable-charset \
|
2016-03-04 19:40:35 +03:00
|
|
|
--enable-aspell \
|
2015-10-18 15:10:11 +03:00
|
|
|
--enable-tests \
|
|
|
|
--enable-werror
|
|
|
|
|
|
|
|
do_build
|
|
|
|
|
|
|
|
popd
|
|
|
|
|
|
|
|
# Build default configuration (ncurses)
|
|
|
|
mkdir -p build-ncurses && pushd $_
|
|
|
|
|
|
|
|
../configure \
|
|
|
|
--prefix="$(pwd)/INSTALL_ROOT" \
|
|
|
|
--with-screen=ncurses \
|
|
|
|
--enable-maintainer-mode \
|
|
|
|
--enable-mclib \
|
|
|
|
--enable-charset \
|
2016-03-04 19:40:35 +03:00
|
|
|
--enable-aspell \
|
2015-10-18 15:10:11 +03:00
|
|
|
--enable-tests \
|
|
|
|
--enable-werror
|
|
|
|
|
|
|
|
do_build
|
|
|
|
|
|
|
|
popd
|
|
|
|
|
|
|
|
# Build all disabled
|
|
|
|
mkdir -p build-all-disabled && pushd $_
|
|
|
|
|
|
|
|
../configure \
|
|
|
|
--prefix="$(pwd)/INSTALL_ROOT" \
|
|
|
|
--disable-maintainer-mode \
|
|
|
|
--disable-mclib \
|
|
|
|
--disable-charset \
|
2016-03-04 19:40:35 +03:00
|
|
|
--disable-aspell \
|
2015-10-18 15:10:11 +03:00
|
|
|
--disable-largefile \
|
|
|
|
--disable-nls \
|
|
|
|
--disable-vfs \
|
|
|
|
--disable-background \
|
|
|
|
--without-x \
|
|
|
|
--without-gpm-mouse \
|
2016-03-04 19:39:32 +03:00
|
|
|
--without-internal-edit \
|
|
|
|
--without-diff-viewer \
|
2015-10-18 15:10:11 +03:00
|
|
|
--without-subshell \
|
|
|
|
--enable-tests \
|
|
|
|
--enable-werror
|
|
|
|
|
|
|
|
do_build
|
|
|
|
|
|
|
|
popd
|