]> xenbits.xensource.com Git - pvdrivers/win/xenbus.git/commitdiff
Avoid leading '0's in version.h date values...
authorPaul Durrant <paul.durrant@citrix.com>
Wed, 8 May 2019 14:16:44 +0000 (15:16 +0100)
committerPaul Durrant <paul.durrant@citrix.com>
Wed, 8 May 2019 14:16:44 +0000 (15:16 +0100)
... which cause the compiler to think they are octal quantities.

Signed-off-by: Paul Durrant <paul.durrant@citrix.com>
scripts/genfiles.ps1

index 6adc7f97019abcb4c8325045d514f065b77ac945..d402696e48b557be9aeb28b876c6bbaf147cadc5 100644 (file)
@@ -42,9 +42,9 @@ Function Copy-FileWithReplacements {
 #
 # Script Body
 #
-$TheYear = Get-Date -UFormat "%Y"
-$TheMonth = Get-Date -UFormat "%m"
-$TheDay = Get-Date -UFormat "%d"
+$TheYear = [int](Get-Date -UFormat "%Y")
+$TheMonth = [int](Get-Date -UFormat "%m")
+$TheDay = [int](Get-Date -UFormat "%d")
 $InfArch = @{ "Win32" = "x86"; "x64" = "amd64" }
 $InfDate = Get-Date -UFormat "%m/%d/%Y"