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);
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
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)
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')