Skip to content

Commit

Permalink
Set the PROJECT_VERSION for PSV in XX.YY format (#9423)
Browse files Browse the repository at this point in the history
  • Loading branch information
oleg-derevenetz authored Jan 18, 2025
1 parent 05d254b commit fa79da9
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion Makefile.vita
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,9 @@

PROJECT_TITLE := fheroes2
PROJECT_TITLEID := FHOMM0002
PROJECT_VERSION := $(file < version.txt)
# Version should be in XX.YY format
PROJECT_VERSION := $(strip $(shell printf %02d.%02d "$$(cat version.txt | cut -s -f1 -d.)" "$$(cat version.txt | cut -s -f2 -d.)") \
$(and $(filter-out 0,$(.SHELLSTATUS)),$(error Invalid version syntax)))

.PHONY: all clean fheroes2.vpk param.sfo fheroes2.elf translations

Expand Down

0 comments on commit fa79da9

Please sign in to comment.