This was way more complicated than it should be

This commit is contained in:
Imbus 2025-01-28 12:06:22 +01:00
parent f5de8d1f37
commit e072f20d9b
4 changed files with 6 additions and 24 deletions

View file

@ -1,10 +1,6 @@
VERSION_FILE := VERSION.txt
ifeq ($(wildcard $(VERSION_FILE)),)
$(shell bash ./generate_version.sh $VERSION_FILE)
endif
REX_VERSION := $(shell cat $(VERSION_FILE))
REX_VERSION := $(shell bash ./generate_version.sh)
RELEASE_NAME := rexforge_$(REX_VERSION)
export REX_VERSION
@ -24,7 +20,7 @@ release: $(RELEASE_NAME)
cp ./LICENSE.txt $(RELEASE_NAME)
cp ./README.md $(RELEASE_NAME)
mkdir -p $(RELEASE_NAME)/source
cp ./VERSION.txt $(RELEASE_NAME)/source
echo $(REX_VERSION) > $(RELEASE_NAME)/source/VERSION.txt
git ls-files | xargs -I{} cp --parents {} $(RELEASE_NAME)/source
date -I > $(RELEASE_NAME)/INFO.txt
echo $(REX_VERSION) >> $(RELEASE_NAME)/INFO.txt