#!/usr/bin/python

import os
import platform
import time

build_date = time.strftime ("%Y-%m-%d")
build_time = time.strftime ("%H:%M:%S")

print """
/* Hitsuji version generated file.
 */

#include "version.hh"

namespace hitsuji
{
	const unsigned version_major = @HITSUJI_VERSION_MAJOR@;
	const unsigned version_minor = @HITSUJI_VERSION_MINOR@;
	const unsigned version_build = @HITSUJI_VERSION_BUILD@;
	const char* build_date = "%s";
	const char* build_time = "%s";
	const char* build_system = "%s";
	const char* build_machine = "%s";
} /* namespace gomi*/

/* eof */
"""%(build_date, build_time, platform.system(), platform.machine())

# end of file
