Commit 2de024b
timestamp for builds
Changed files (3)
Diff
@@ -41,7 +41,8 @@ public static int run_gui (string[] arg) { Process.exit (0); } - stdout.printf ("birdfont version %s\n", VERSION); + stdout.printf ("birdfont version %s\n", VERSION);+ stdout.printf ("built on %s\n", BUILD_TIMESTAMP); supplement.current_font = new Font (); supplement.current_glyph = new Glyph ("");@@ -405,11 +405,13 @@ os.put_string ( export_thread = new ExportThread (temp_file, (!) ttf_file.get_path (), (!) eot_file.get_path ()); try {- export_thread_is_running = true;- export_thread_handle = Thread.create<void*> (export_thread.run, true);- + if (async) {+ export_thread_is_running = true;+ export_thread_handle = Thread.create<void*> (export_thread.run, true);+ }+ if (!async) {- export_thread_handle.join ();+ export_thread.run (); } } catch (ThreadError e) { warning (e.message);@@ -1,4 +1,6 @@-VERSION = '0.3.0' +import time; + +VERSION = '0.3.1' APPNAME = 'birdfont' top = '.' @@ -45,8 +47,17 @@ def write_config (): f = open('./src/Config.vala', 'w+') f.write("// Don't edit this file – it's generated by wscript\n") f.write("namespace Supplement {\n") + f.write(" internal static const string VERSION = \"") f.write(VERSION) f.write("\""); f.write(";\n") + + localtime = time.asctime( time.localtime(time.time())) + + f.write(" internal static const string BUILD_TIMESTAMP = \"") + f.write(localtime) + f.write("\""); + f.write(";\n") + f.write("}");