hisat-3n/msvcc/SetVersion.vbs

15 lines
442 B
Plaintext
Raw Permalink Normal View History

2025-01-18 13:09:52 +00:00
' ask the scripting runtime environemt for access to files
set FS = CreateObject("Scripting.FileSystemObject")
set FileHandler = FS.GetFile("../VERSION")
set inputTextStream = FileHandler.OpenAsTextStream(1)
version = inputTextStream.ReadLine
WScript.Echo "Version: " & version
set outputTextStream = FS.CreateTextFile("../version.h",true)
outputTextStream.WriteLine "#define HISAT2_VERSION """ & version & """"
outputTextStream.close