Skip to content

Commit 0db84c4

Browse files
authored
Bump version to 2.8 (#6)
Version 2.8 was selected to avoid collision with the 2.7 version of the ipodloader2 binary that is floating around the internet. Truncate loader name to just "iPL VERSION" to make room for the git short hash included in VERSION. Move version number completely into the Makefile.
1 parent cefead1 commit 0db84c4

2 files changed

Lines changed: 6 additions & 7 deletions

File tree

Makefile

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,8 @@
33
# Note by TT: the option "-mstructure-size-boundary=8" is necessary when compiling macpartitions.cc for the structs to get the correct sizes!
44

55
# Get the git hash, if the working directory is clean
6-
76
GIT_SHELL_EXIT := $(shell git status --porcelain 2> /dev/null >&2 ; echo $$?)
8-
9-
# It can be non-zero when not in git repository or git is not installed.
7+
# Return code can be non-zero when not in git repository or git is not installed.
108
# It can happen when downloaded using github's "Download ZIP" option.
119
ifeq ($(GIT_SHELL_EXIT),0)
1210
# Check if working dir is clean.
@@ -16,10 +14,11 @@ GIT_COMMIT_HASH := $(shell git rev-parse --short HEAD)
1614
endif
1715
endif
1816

17+
# Suffix with "d" for development version, "b" for beta version
18+
VERSION = 2.8
19+
1920
ifdef GIT_COMMIT_HASH
20-
VERSION = $(GIT_COMMIT_HASH)
21-
else
22-
VERSION = 2.6
21+
VERSION := "$(VERSION) $(GIT_COMMIT_HASH)"
2322
endif
2423

2524
$(info VERSION is $(VERSION))

loader.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
#include "config.h"
1212
#include "interrupts.h"
1313

14-
#define LOADERNAME "iPL Loader 2.6 " VERSION // "d" stands for development version, "b" for beta version
14+
#define LOADERNAME "iPL " VERSION // VERSION is set in the Makefile
1515

1616
static uint16 *framebuffer;
1717
static int orig_contrast;

0 commit comments

Comments
 (0)