[Xfce4-commits] <midori:master> Use versioned speed dial template filename
Christian Dywan
noreply at xfce.org
Tue Oct 25 02:30:01 CEST 2011
Updating branch refs/heads/master
to 3c116eab7e35a4b85dd35ae8f2b09529218f31b6 (commit)
from b359341801ded617ac82bdbc4d2004e50ba730d2 (commit)
commit 3c116eab7e35a4b85dd35ae8f2b09529218f31b6
Author: Paweł Forysiuk <tuxator at o2.pl>
Date: Sun Oct 23 19:23:03 2011 +0200
Use versioned speed dial template filename
midori/midori-view.c | 3 ++-
wscript | 12 ++++++++----
2 files changed, 10 insertions(+), 5 deletions(-)
diff --git a/midori/midori-view.c b/midori/midori-view.c
index f1be02a..1eeeaf7 100644
--- a/midori/midori-view.c
+++ b/midori/midori-view.c
@@ -3704,7 +3704,8 @@ prepare_speed_dial_html (MidoriView* view)
if (!key_file)
return g_strdup ("");
- file_name = g_build_filename ("midori", "res", "speeddial-head.html", NULL);
+ file_name = g_build_filename ("midori", "res",
+ "speeddial-head-" MIDORI_VERSION ".html", NULL);
file_path = sokoke_find_data_filename (file_name);
g_free (file_name);
diff --git a/wscript b/wscript
index 7ff2a29..6c3073a 100644
--- a/wscript
+++ b/wscript
@@ -32,13 +32,13 @@ minor = 4
micro = 1
APPNAME = 'midori'
-VERSION = str (major) + '.' + str (minor) + '.' + str (micro)
+VERSION = VERSION_FULL = str (major) + '.' + str (minor) + '.' + str (micro)
try:
if os.path.isdir ('.git'):
git = Utils.cmd_output (['git', 'describe'], silent=True)
if git:
- VERSION = git.strip ()
+ VERSION_FULL = git.strip ()
except:
pass
@@ -272,11 +272,12 @@ def configure (conf):
else:
conf.check (header_name='signal.h')
- conf.define ('PACKAGE_VERSION', VERSION)
+ conf.define ('PACKAGE_VERSION', VERSION_FULL)
conf.define ('PACKAGE_NAME', APPNAME)
conf.define ('PACKAGE_BUGREPORT', 'https://bugs.launchpad.net/midori')
conf.define ('GETTEXT_PACKAGE', APPNAME)
+ conf.define ('MIDORI_VERSION', VERSION)
conf.define ('MIDORI_MAJOR_VERSION', major)
conf.define ('MIDORI_MINOR_VERSION', minor)
conf.define ('MIDORI_MICRO_VERSION', micro)
@@ -476,8 +477,11 @@ def build (bld):
else:
Utils.pprint ('BLUE', "logo-shade could not be rasterized.")
- for res_file in ['error.html', 'speeddial-head.html', 'close.png']:
+ for res_file in ['error.html', 'close.png']:
bld.install_files ('${MDATADIR}/' + APPNAME + '/res', 'data/' + res_file)
+ bld.install_as ( \
+ '${MDATADIR}/' + APPNAME + '/res/speeddial-head-%s.html' % VERSION, \
+ 'data/speeddial-head.html')
if bld.env['addons']:
bld.install_files ('${MDATADIR}/' + APPNAME + '/res', 'data/autosuggestcontrol.js')
More information about the Xfce4-commits
mailing list