star-build

Automation tool for project installation
git clone git://git.meso-star.com/star-build.git
Log | Files | Refs | README | LICENSE

commit 583cb3f9e03d9c4ae97c81b9093a5294d73d8642
parent 4563ae937aa903af62c4c9a478ee5ea1cf779c93
Author: Vincent Forest <vincent.forest@meso-star.com>
Date:   Thu, 15 Oct 2026 15:30:39 +0200

noweb: add compilation script for version 2.12

Version 2.13rc3 highlights a bug in GNU awk 5.2.1. The consequence is
that noweb sources cannot be compiled. Hence this commit that adds a
build script for version 2.12 of noweb that does not see to worry about
the GNU awk bug.

Note that the build script template has been slightly updated to ignore
an error in the noweb 2.12 building system, which does not appear to be
blocking.

Diffstat:
Msrc/app-text/noweb.mk.in | 2+-
Asrc/app-text/noweb_2.12.sh | 31+++++++++++++++++++++++++++++++
2 files changed, 32 insertions(+), 1 deletion(-)

diff --git a/src/app-text/noweb.mk.in b/src/app-text/noweb.mk.in @@ -38,7 +38,7 @@ noweb: build_noweb build_noweb: $(NOWEB_DIR) prefix patch_noweb @prefix=$$(cat .prefix) &&\ cd -- "$(NOWEB_DIR)/src" &&\ - ./awkname awk &&\ + ./awkname awk || true &&\ $(NOWEB_MAKE) boot &&\ $(NOWEB_MAKE) all diff --git a/src/app-text/noweb_2.12.sh b/src/app-text/noweb_2.12.sh @@ -0,0 +1,31 @@ +#!/bin/sh + +# Copyright (C) 2023-2026 |Méso|Star> (contact@meso-star.com) +# +# This file is part of Star-Build. +# +# Star-Build 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. +# +# Star-Build 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 Star-Build. If not, see <http://www.gnu.org/licenses/>. + +set -e + +. "misc/build.sh" + +tag=v2_12 + +if [ -n "${NOWEB_SH}" ]; then + check_conflict "noweb" "${tag}" "${NOWEB_SH}" +else + export NOWEB_SH="${tag}" + sed "s/@TAG@/${tag}/" "app-text/noweb.mk.in" +fi