mirror of
https://github.com/tinymce/tinymce.git
synced 2025-07-30 12:56:42 +00:00

* TINY-10144: added changie command placeholder * TINY-10144: added changie command and moved 6.8 changes over to changie * TINY-10144: add changes to changelog * TINY-10144: added changie folder to all modules, moved header file to root folder * TINY-10144: add changie-runner * TINY-10144: remove root changie folder * TINY-10144: move changie.ymal to root folder * TINY-10144: add option to batch process * TINY-10144: remove unused script * TINY-10144: fix individual changie command not working * TINY-10144: use changie project management * TINY-10144: update fragment file name * TINY-10144: remove changie entry * TINY-10144: remove runner reference * TINY-10144: add content to acid changelog * TINY-10144: add a make file to handle changie on all projects * TINY-10144: update makefile * TINY-10144: update Jenkinsfile with make command * Uppercase M * TINY-10144: Use changie from NPM * TINY-10144: Add new changes up to 6.7.2 to the existing changelog * Fixed spaces in makefile * TINY-10144: Stop trying to batch all projects, which will naturally fail most of the time. Added merge -u * Upgrade to changie with fixed merge -u * Now that changie has better options, we don't need the Makefile anymore * TINY-10144: update fragmentFileFormat * TINY-10144: update `kinds` order * TINY-10144: add wrapper for changie * TINY-10144: Remove unreleased changes * TINY-10144: Update script to dry run before making change to changelog * TINY-10144: Update changelog with version using yarn changie-merge * TINY-10144: Update makefile * TINY-10144: Update Makefile with version retrieval from versions.txt * TINY-10144: Update Makefile to handle tinymce version (WIP) * TINY-10144: modify Makefile to seperate tinymce and other changlog process * TINY-10144: update changie version * TINY-10144: change to `changie merge` * TINY-10144: add .gitkeep to unreleased folder * TINY-10144: getting packages other than tinymce ready for changie * TINY-10144: refactor changelog * TINY-10144: add change entry for tinymce * TINY-10144: get tinymce ready for changie * TINY-10144: reformat changelog * TINY-10144: rewrite Makefile * TINY-10144: add missing changlog entry * TINY-10144: add new change entry, and mising entry * TINY-10144: changie merge --------- Co-authored-by: Andrew Herron <thespyder@programmer.net>
42 lines
1.4 KiB
Makefile
42 lines
1.4 KiB
Makefile
UNRELEASED_FILES := $(wildcard .changes/unreleased/*)
|
|
PACKAGES := $(patsubst .changes/unreleased/%,%,$(UNRELEASED_FILES))
|
|
|
|
extract_first_word = $(word 1, $(subst -, ,$1))
|
|
|
|
PACKAGE_NAMES := $(sort $(foreach proj,$(PACKAGES),$(call extract_first_word,$(proj))))
|
|
TINY_PACKAGES := $(filter tinymce%,$(PACKAGE_NAMES))
|
|
OTHER_PACKAGES := $(filter-out tinymce%,$(PACKAGE_NAMES))
|
|
|
|
VERSION_FILE := versions.txt
|
|
|
|
get_tiny_version = $(shell jq -r '.version' modules/tinymce/package.json)
|
|
get_version = $(shell grep '^$(call extract_first_word,$1)@' $(VERSION_FILE) | cut -d '@' -f 2)
|
|
|
|
.PHONY: tiny other
|
|
tiny: $(TINY_PACKAGES)
|
|
other: $(OTHER_PACKAGES)
|
|
|
|
$(OTHER_PACKAGES):
|
|
@echo "========================================="
|
|
@echo "Running changie batch (dry run) for $@"
|
|
@version=$(call get_version,$@); \
|
|
if [ -z "$$version" ]; then \
|
|
echo "Version not found for package $@"; \
|
|
echo "Please add it to $(VERSION_FILE)"; \
|
|
exit 1; \
|
|
else \
|
|
changie batch $$version --project $@ --dry-run; \
|
|
echo "Press Enter to continue with actual changie batch or Ctrl+C to cancel..."; \
|
|
read; \
|
|
changie batch $$version --project $@; \
|
|
fi
|
|
|
|
$(TINY_PACKAGES):
|
|
@echo "Running changie batch (dry run) for TinyMCE"
|
|
@version=$(get_tiny_version); \
|
|
changie batch $$version --project tinymce --dry-run; \
|
|
echo "Press Enter to continue with actual changie batch or Ctrl+C to cancel..."; \
|
|
read; \
|
|
changie batch $$version --project tinymce
|
|
|