Skip to content
This repository was archived by the owner on Aug 31, 2021. It is now read-only.

Commit 985f02c

Browse files
committed
build: Require unreleased version when generating installers
Make sure that the build will fail if you try to build a version of LiveCode that's already been released. This simply adds a check that a matching tag isn't already present in the git repository.
1 parent 3f74d74 commit 985f02c

File tree

1 file changed

+14
-1
lines changed

1 file changed

+14
-1
lines changed

buildbot.mk

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -168,7 +168,7 @@ dist-tools: dist-tools-commercial
168168
distmac-disk: distmac-disk-indy distmac-disk-business
169169
endif
170170

171-
dist-tools: dist-tools-community
171+
dist-tools: dist-tools-community dist-tools-version-check
172172
distmac-disk: distmac-disk-community
173173

174174
dist-tools-community:
@@ -179,6 +179,19 @@ dist-tools-commercial:
179179
--built-docs-dir $(docs_build_dir)/cooked-commercial
180180
$(buildtool_command) --platform mac --platform win --platform linux --stage tools --edition business \
181181
--built-docs-dir $(docs_build_dir)/cooked-commercial
182+
# Ensure that the version for which we're trying to build installers
183+
# hasn't already been tagged.
184+
dist-tools-version-check:
185+
@if git rev-parse refs/tags/$(BUILD_SHORT_VERSION) \
186+
>/dev/null 2>&1 ; then \
187+
echo; \
188+
echo "$(BUILD_SHORT_VERSION) has already been released."; \
189+
echo "You probably need to update the 'version' file."; \
190+
echo; \
191+
exit 1; \
192+
fi
193+
194+
.PHONY: dist-tools-version-check
182195

183196
distmac-bundle-community:
184197
$(buildtool_command) --platform mac --stage bundle --edition community

0 commit comments

Comments
 (0)