1 // Copyright Brian Schott (Hackerpilot) 2015. 2 // Distributed under the Boost Software License, Version 1.0. 3 // (See accompanying file LICENSE_1_0.txt or copy at 4 // http://www.boost.org/LICENSE_1_0.txt) 5 6 module dscanner.dscanner_version; 7 8 /** 9 * Human-readable version number 10 */ 11 enum DEFAUULT_DSCANNER_VERSION = "v0.5.0"; 12 13 version (built_with_dub) 14 { 15 enum DSCANNER_VERSION = import("dubhash.txt"); 16 } 17 else version (Windows) 18 { 19 enum DSCANNER_VERSION = DEFAUULT_DSCANNER_VERSION; 20 } 21 else 22 { 23 /** 24 * Current build's Git commit hash 25 */ 26 enum DSCANNER_VERSION = import("githash.txt"); 27 }