diff options
author | Craig Noble <craign@trig-avionics.com> | 2018-01-08 12:18:42 +0000 |
---|---|---|
committer | Craig Noble <craign@trig-avionics.com> | 2018-01-08 12:18:42 +0000 |
commit | 0f31d907f1984d9f536c73a1feec42806116898b (patch) | |
tree | 59ccd1233a495d23d72cbd8c4d4a6bbd96948117 /libraries/vendors | |
parent | 97813f901e260c3ae1506c272651da3b09e0dcf1 (diff) | |
download | ghdl-0f31d907f1984d9f536c73a1feec42806116898b.tar.gz ghdl-0f31d907f1984d9f536c73a1feec42806116898b.tar.bz2 ghdl-0f31d907f1984d9f536c73a1feec42806116898b.zip |
Remove dependency on Get-DriveInfo for powershell compile scripts
Diffstat (limited to 'libraries/vendors')
-rw-r--r-- | libraries/vendors/compile-altera.ps1 | 4 | ||||
-rw-r--r-- | libraries/vendors/compile-intel.ps1 | 4 | ||||
-rw-r--r-- | libraries/vendors/compile-lattice.ps1 | 4 | ||||
-rw-r--r-- | libraries/vendors/compile-xilinx-ise.ps1 | 4 | ||||
-rw-r--r-- | libraries/vendors/compile-xilinx-vivado.ps1 | 4 |
5 files changed, 10 insertions, 10 deletions
diff --git a/libraries/vendors/compile-altera.ps1 b/libraries/vendors/compile-altera.ps1 index a6b442926..f797ce155 100644 --- a/libraries/vendors/compile-altera.ps1 +++ b/libraries/vendors/compile-altera.ps1 @@ -132,8 +132,8 @@ function Get-AlteraQuartusDirectory { return $QUARTUS_ROOTDIR + "\" + (Get-VendorToolSourceDirectory) } else { $EnvSourceDir = "" - foreach ($Drive in Get-DriveInfo) - { $Path = $Drive.Name + "Altera" + foreach ($Drive in gdr -PSProvider 'FileSystem') + { $Path = $Drive.Name + ":\" + "Altera" if (Test-Path $Path -PathType Container) { foreach ($Major in 16..13) { foreach ($Minor in 3..0) diff --git a/libraries/vendors/compile-intel.ps1 b/libraries/vendors/compile-intel.ps1 index a5dd32302..db0504b54 100644 --- a/libraries/vendors/compile-intel.ps1 +++ b/libraries/vendors/compile-intel.ps1 @@ -135,8 +135,8 @@ function Get-AlteraQuartusDirectory { return $QUARTUS_ROOTDIR + "\" + (Get-VendorToolSourceDirectory) } else { $EnvSourceDir = "" - foreach ($Drive in Get-DriveInfo) - { $Path = $Drive.Name + "Altera" + foreach ($Drive in gdr -PSProvider 'FileSystem') + { $Path = $Drive.Name + ":\" + "Altera" if (Test-Path $Path -PathType Container) { foreach ($Major in 16..13) { foreach ($Minor in 3..0) diff --git a/libraries/vendors/compile-lattice.ps1 b/libraries/vendors/compile-lattice.ps1 index 2761bf816..847e5b1e5 100644 --- a/libraries/vendors/compile-lattice.ps1 +++ b/libraries/vendors/compile-lattice.ps1 @@ -157,8 +157,8 @@ function Get-LatticeDiamondDirectory { return $FOUNDRY + "\..\" + (Get-VendorToolSourceDirectory) } else { $EnvSourceDir = "" - foreach ($Drive in Get-DriveInfo) - { $Path = $Drive.Name + "Lattice\Diamond" + foreach ($Drive in gdr -PSProvider 'FileSystem') + { $Path = $Drive.Name + ":\" + "Lattice\Diamond" if (Test-Path $Path -PathType Container) { foreach ($Major in 4..3) { foreach ($Minor in 9..0) diff --git a/libraries/vendors/compile-xilinx-ise.ps1 b/libraries/vendors/compile-xilinx-ise.ps1 index 42a54327e..d92fc51a8 100644 --- a/libraries/vendors/compile-xilinx-ise.ps1 +++ b/libraries/vendors/compile-xilinx-ise.ps1 @@ -127,8 +127,8 @@ function Get-XilinxISEDirectory { return $XILINX + "\" + (Get-VendorToolSourceDirectory) } else { $EnvSourceDir = "" - foreach ($Drive in Get-DriveInfo) - { $Path = $Drive.Name + "Xilinx" + foreach ($Drive in gdr -PSProvider 'FileSystem') + { $Path = $Drive.Name + ":\" + "Xilinx" if (Test-Path $Path -PathType Container) { foreach ($Major in 14..12) { foreach ($Minor in 7..1) diff --git a/libraries/vendors/compile-xilinx-vivado.ps1 b/libraries/vendors/compile-xilinx-vivado.ps1 index c25ab0c08..1338048d5 100644 --- a/libraries/vendors/compile-xilinx-vivado.ps1 +++ b/libraries/vendors/compile-xilinx-vivado.ps1 @@ -113,8 +113,8 @@ function Get-XilinxVivadoDirectory { return $XILINX_VIVADO + "\" + (Get-VendorToolSourceDirectory) } else { $EnvSourceDir = "" - foreach ($Drive in Get-DriveInfo) - { $Path = $Drive.Name + "Xilinx\Vivado" + foreach ($Drive in gdr -PSProvider 'FileSystem') + { $Path = $Drive.Name + ":\" + "Xilinx\Vivado" if (Test-Path $Path -PathType Container) { foreach ($Major in 2018..2014) { foreach ($Minor in 4..1) |