Skip to content

Commit

Permalink
Make sure the release is correct
Browse files Browse the repository at this point in the history
Signed-off-by: Alvaro Saurin <alvaro.saurin@gmail.com>
  • Loading branch information
inercia committed Aug 14, 2020
1 parent 995b8d7 commit 7ac3316
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,8 @@ FLATPAK_SDK = org.gnome.Sdk
FLATPAK_RUNTIME = org.gnome.Platform
FLATPAK_RUNTIME_VERSION = 3.36

METAINFO_FILE = data/com.github.inercia.k3x.appdata.xml.in

FLATPAK_BASE_APP = io.elementary.BaseApp
FLATPAK_BASE_VERSION = juno-19.08

Expand Down Expand Up @@ -204,9 +206,15 @@ pep8:
check-version:
$(Q)[ -n "$(TAG)" ] || { printf "$(CYN)>>> $(RED)No TAG provided$(END)\n" ; exit 1 ; }
$(Q)tag=`echo $(TAG) | tr -d "v"` ; \
grep -q "$$tag" "meson.build" || { printf "$(CYN)>>> $(RED)$$tag does not match the 'version' in 'meson.build'. Please update that file.$(END)\n" ; exit 1 ; }
grep -q "$$tag" "meson.build" || \
{ printf "$(CYN)>>> $(RED)$$tag does not match the 'version' found in 'meson.build'. Please update that file.$(END)\n" ; exit 1 ; }
@printf "$(CYN)>>> $(GRN)Version in meson.build looks fine.$(END)\n"

$(Q)tag=`echo $(TAG) | tr -d "v"` ; \
cat $(METAINFO_FILE) | grep release | grep -v -q $$tag || \
{ printf "$(CYN)>>> $(RED)Version $$tag not found in the 'releases' section in $(METAINFO_FILE)).$(END)\n" ; exit 1 ; }
@printf "$(CYN)>>> $(GRN)Version in $(METAINFO_FILE) looks fine.$(END)\n"

##############################
# Packaging
##############################
Expand Down

0 comments on commit 7ac3316

Please sign in to comment.