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

merge-requests/218/head
Jens Lody 9 years ago
parent 7a959819c1
commit e3002460cc
  1. 2
      configure.ac
  2. 3
      data/Makefile.am
  3. 3
      data/metadata.json.in

@ -21,6 +21,8 @@ PKG_PROG_PKG_CONFIG([0.22])
GLIB_GSETTINGS 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)]) 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 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 metadata.json: metadata.json.in $(top_builddir)/config.status
$(AM_V_GEN) sed -e "s|[@]LOCALEDIR@|$(datadir)/locale|" \ $(AM_V_GEN) sed -e "s|[@]LOCALEDIR@|$(datadir)/locale|" \
-e "s|[@]uuid@|$(uuid)|" \ -e "s|[@]uuid@|$(uuid)|" \
-e "s|[@]url@|$(extensionurl)|" $< > $@ -e "s|[@]url@|$(extensionurl)|" \
-e "s|[@]version@|$(GIT_VERSION)|" $< > $@
CLEANFILES = metadata.json CLEANFILES = metadata.json

@ -4,5 +4,6 @@
"description": "Weather extension to display weather information from https://openweathermap.org/ or https://forecast.io for almost all locations in the world.\nTo use the weather-data of forecast.io, you have to register on their site (https://developer.forecast.io/register) and get a personal API-key.\n\nSince version 29 this extensions uses coordinates to store the locations and makes the names editable to support multiple weather-providers!\nIf you update from versions prior to 29 to 29 or greater (with forecast.io - support) you have to recreate your locations.", "description": "Weather extension to display weather information from https://openweathermap.org/ or https://forecast.io for almost all locations in the world.\nTo use the weather-data of forecast.io, you have to register on their site (https://developer.forecast.io/register) and get a personal API-key.\n\nSince version 29 this extensions uses coordinates to store the locations and makes the names editable to support multiple weather-providers!\nIf you update from versions prior to 29 to 29 or greater (with forecast.io - support) you have to recreate your locations.",
"shell-version": [ "3.12", "3.14", "3.16", "3.17.4", "3.17.90" ], "shell-version": [ "3.12", "3.14", "3.16", "3.17.4", "3.17.90" ],
"localedir": "@LOCALEDIR@", "localedir": "@LOCALEDIR@",
"url": "@url@" "url": "@url@",
"version": "@version@"
} }

Loading…
Cancel
Save