/* For convenience, include localization header */
#include <glib/gi18n.h>
+#define MIDORI_CHECK_VERSION(major, minor, micro) \
+ (MIDORI_MAJOR_VERSION > (major) || \
+ (MIDORI_MAJOR_VERSION == (major) && MIDORI_MINOR_VERSION > (minor)) || \
+ (MIDORI_MAJOR_VERSION == (major) && MIDORI_MINOR_VERSION == (minor) && \
+ MIDORI_MICRO_VERSION >= (micro)))
+
#endif /* __MIDORI_H__ */
import os
import UnitTest
+major = 0
+minor = 1
+micro = 0
+
APPNAME = 'midori'
-VERSION = '0.1.0'
+VERSION = str (major) + '.' + str (minor) + '.' + str (micro)
try:
git = subprocess.Popen (['git', 'rev-parse', '--short', 'HEAD'],
conf.define ('PACKAGE_BUGREPORT', 'http://www.twotoasts.de/bugs')
conf.define ('GETTEXT_PACKAGE', APPNAME)
+ conf.define ('MIDORI_MAJOR_VERSION', major)
+ conf.define ('MIDORI_MINOR_VERSION', minor)
+ conf.define ('MIDORI_MICRO_VERSION', micro)
+
conf.write_config_header ('config.h')
conf.env.append_value ('CCFLAGS', '-DHAVE_CONFIG_H')