Add ability to set version via configure-script; useful for local-builds or when packaged for distros.

master
Jens Lody 9 years ago
parent 2ab106add7
commit 892aac3545
  1. 2
      configure.ac
  2. 3
      data/Makefile.am
  3. 3
      data/metadata.json.in

@ -20,6 +20,8 @@ PKG_PROG_PKG_CONFIG([0.22])
GLIB_GSETTINGS
AC_ARG_VAR(GIT_VERSION, git-version to be placed in metadata.json, will be overwritten when uploaded to gnome.org (default not set))
AC_ARG_WITH(desktop-dir, [ --with-desktop-dir=PATH where to install desktop files (default=PREFIX/share)])
if test "x$with_desktop_dir" != x; then

@ -16,7 +16,8 @@ EXTRA_DIST = metadata.json.in
metadata.json: metadata.json.in $(top_builddir)/config.status
$(AM_V_GEN) sed -e "s|[@]LOCALEDIR@|$(datadir)/locale|" \
-e "s|[@]uuid@|$(uuid)|" \
-e "s|[@]url@|$(extensionurl)|" $< > $@
-e "s|[@]url@|$(extensionurl)|" \
-e "s|[@]version@|$(GIT_VERSION)|" $< > $@
CLEANFILES = metadata.json

@ -4,5 +4,6 @@
"description": "Configuring where on the (main) screen notifications will appear, instead of just above the message tray",
"shell-version": [ "3.10", "3.12", "3.14", "3.16", "3.17.4", "3.17.90" ],
"localedir": "@LOCALEDIR@",
"url": "@url@"
"url": "@url@",
"version": "@version@"
}

Loading…
Cancel
Save