Skip to content

Commit

Permalink
Update Makefile: '=' instead of '=='
Browse files Browse the repository at this point in the history
  • Loading branch information
schuur authored Nov 14, 2024
1 parent 4151f11 commit d309682
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -33,13 +33,13 @@ build/%.html: spec/%.bs

@echo Set the status in the document

@if [ "$(status)" == "Release" ]; then \
@if [ "$(status)" = "Release" ]; then \
echo "Release: add version to title"; \
mv -f $@ [email protected]; \
sed 's/<title>\(.*\)<\/title>/<title>\1 (Version $(version))<\/title>/g' [email protected] > $@; \
mv -f $@ [email protected]; \
sed 's/\(<h1 .*id="title">.*\)\(<\/h1>\)/\1 (Version $(version))\2/g' [email protected] > $@; \
elif [ "$(status)" == "Draft" ] || [ "$(status)" == "Consultation" ]; then \
elif [ "$(status)" = "Draft" ] || [ "$(status)" == "Consultation" ]; then \
echo "No release: add version-date to title"; \
mv -f $@ [email protected]; \
sed 's/<title>\(.*\)<\/title>/<title>\1 (Version $(version)-$(date))<\/title>/g' [email protected] > $@; \
Expand Down

0 comments on commit d309682

Please sign in to comment.