Skip to content

Commit

Permalink
Merge pull request #1713 from ghaerr/version
Browse files Browse the repository at this point in the history
[build] Update ELKS version to 0.8.0-dev
  • Loading branch information
ghaerr authored Sep 12, 2023
2 parents 284a111 + 7fb1145 commit a356c56
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 11 deletions.
12 changes: 6 additions & 6 deletions elks/Makefile-rules
Original file line number Diff line number Diff line change
Expand Up @@ -55,10 +55,10 @@ include $(TOPDIR)/Make.defs
#########################################################################
# State the current version of this system.

VERSION = 0 # (0-255)
PATCHLEVEL = 7 # (0-255)
SUBLEVEL = 0 # (0-255)
PRE = 0
VERSION = 0 # (0-255)
PATCHLEVEL = 8 # (0-255)
SUBLEVEL = 0 # (0-255)
PRE = -dev

#########################################################################
# Specify the architecture we will use.
Expand All @@ -77,14 +77,14 @@ TARGET_NB_IMAGE = $(TOPDIR)/elks/nbImage
#########################################################################
# Define variables directly dependant on the current version number.

ifeq ($(PRE), 0)
ifeq ($(PRE), )

DIST = $(shell printf '%u.%u.%u' \
$(VERSION) $(PATCHLEVEL) $(SUBLEVEL))

else

DIST = $(shell printf '%u.%u.%u-pre%u' \
DIST = $(shell printf '%u.%u.%u%s' \
$(VERSION) $(PATCHLEVEL) $(SUBLEVEL) $(PRE))

endif
Expand Down
10 changes: 5 additions & 5 deletions image/ver.pl
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,10 @@
#Get the version from the kernel makefile

while (<>) {
/^\s*VERSION\s*=\s*(\d+)/ && ($ver = $1);
/^\s*PATCHLEVEL\s*=\s*(\d+)/ && ($pat = $1);
/^\s*SUBLEVEL\s*=\s*(\d+)/ && ($sub = $1);
/^\s*EXTRAVERSION\s*=\s*(.*)/ && ($ext = $1);
/^\s*VERSION\s*=\s*(\d+)/ && ($ver = $1);
/^\s*PATCHLEVEL\s*=\s*(\d+)/ && ($pat = $1);
/^\s*SUBLEVEL\s*=\s*(\d+)/ && ($sub = $1);
/^\s*PRE\s*=\s*(.*)/ && ($pre = $1);
}

print "\nELKS ${ver}.${pat}.${sub}${ext}\n\n";
print "\nELKS ${ver}.${pat}.${sub}${pre}\n\n";

0 comments on commit a356c56

Please sign in to comment.