summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorkali kaneko (leap communications) <kali@leap.se>2021-12-09 21:12:40 +0100
committerkali kaneko (leap communications) <kali@leap.se>2021-12-09 21:15:00 +0100
commit035cf4efce17d85569e88426f03aafd3ad0fc068 (patch)
tree3130cb7a35490e55fe60b3aaf1712700bb31db7e
parent4fd7c1a92e3c16b300997e2cbd82ae3cdd6279ec (diff)
[pkg] ability to bump snap version
-rw-r--r--Makefile4
1 files changed, 4 insertions, 0 deletions
diff --git a/Makefile b/Makefile
index 263df1a..2a4bd69 100644
--- a/Makefile
+++ b/Makefile
@@ -326,6 +326,10 @@ endif
# packaging templates
#########################################################################
+bump_snap:
+ @sed -i 's/^version:.*$$/version: ${VERSION}/' snap/snapcraft.yaml
+ @sed -i 's/^.*echo .*version.txt$$/ echo ${VERSION} > $$SNAPCRAFT_PRIME\/snap\/version.txt/' snap/snapcraft.yaml
+
vendor_init:
@VENDOR_PATH=${VENDOR_PATH} ./branding/scripts/init