From bf6f4e64b521b6fe605797f20ba8f71a1084fed9 Mon Sep 17 00:00:00 2001 From: Gertjan Date: Thu, 14 Nov 2024 15:13:24 +0100 Subject: [PATCH] Adapted to bash if-syntax --- Makefile | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/Makefile b/Makefile index 05b64b7..34d17a5 100644 --- a/Makefile +++ b/Makefile @@ -32,13 +32,14 @@ build/%.html: spec/%.bs bikeshed --allow-nonlocal-files spec $< $@ @echo Set the status in the document - @if [ "$(status)"=="Release" ]; then \ + + @if [ '$(status)' == 'Release' ]; then \ echo "Release: add version to title"; \ mv -f $@ $@.tmp; \ sed 's/\(.*\)<\/title>/<title>\1 (Version $(version))<\/title>/g' $@.tmp > $@; \ mv -f $@ $@.tmp; \ sed 's/\(<h1 .*id="title">.*\)\(<\/h1>\)/\1 (Version $(version))\2/g' $@.tmp > $@; \ - elif [ "$(status)" == "Draft" || "$(status)" == "Consultation" ]; then \ + elif [ '$(status)' == 'Draft' ] || [ '$(status)' == 'Consultation' ]; then \ echo "No release: add version-date to title"; \ mv -f $@ $@.tmp; \ sed 's/<title>\(.*\)<\/title>/<title>\1 (Version $(version)-$(date))<\/title>/g' $@.tmp > $@; \