/
githubmirror
/
libarchive
Обзор
Документация
Войти
/
githubmirror
/
libarchive
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
master
build/makerelease.sh
58 строк
1 KB
Michalis Vasileiadis
build: fetch config.guess/config.sub over HTTPS in makerelease.sh
29 май 2026, 16:30
29 май 2026, 16:30
c38b2de
Код
Авторство
О чём код?
#!/bin/sh set -eu # # This script exists primarily to document some of the # steps needed when building an "official libarchive distribution". # Feel free to hack it up as necessary to adjust to the peculiarities # of a particular build environment. # PATH=/usr/local/gnu-autotools/bin/:$PATH # Start from one level above the build directory if [ -f version ]; then cd .. fi if [ \! -f build/version ]; then echo "Can't find source directory" exit 1 fi # BSD make's "OBJDIR" support freaks out the automake-generated # Makefile. Effectively disable it. export MAKEOBJDIRPREFIX=/junk set -x # # Scrub the local tree before running the build tests below. # /bin/sh build/clean.sh # # Verify the CMake-generated build # mkdir -p _cmtest cd _cmtest cmake .. make make test cd .. rm -rf _cmtest # TODO: Build distribution using cmake # # Construct and verify the autoconf build system # export MAKE_LIBARCHIVE_RELEASE="1" /bin/sh build/autogen.sh # Get the newest config.guess/config.sub from savannah.gnu.org curl -fsSL 'https://git.savannah.gnu.org/gitweb/?p=config.git;a=blob_plain;f=config.guess;hb=HEAD' > build/autoconf/config.guess curl -fsSL 'https://git.savannah.gnu.org/gitweb/?p=config.git;a=blob_plain;f=config.sub;hb=HEAD' > build/autoconf/config.sub ./configure make distcheck make dist-zip