-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
14 changed files
with
59 additions
and
20 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,12 @@ | ||
r←GetUserHomPath;os | ||
⍝ Returns the user's HOME path on the current operating system, like | ||
⍝ /home/<⎕an> on Linux | ||
⍝ Returns the user's HOME path on the current operating system | ||
:Select os←APLTreeUtils2.GetOperatingSystem ⍬ | ||
:Case 'Win' | ||
r←¯1↓⊃1 ⎕NPARTS ¯1↓⊃1 ⎕NPARTS 2⊃4070⌶0 | ||
:Case 'Lin' | ||
r←'/home/',⎕AN | ||
r←2 ⎕NQ'.' 'GetEnvironment' 'HOME' | ||
:Case 'Mac' | ||
r←'/Users/',⎕AN | ||
r←2 ⎕NQ'.' 'GetEnvironment' 'HOME' | ||
:Else | ||
('<',os,'> is not a supported operating system')⎕SIGNAL 11 | ||
:EndSelect |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
r←Version | ||
⍝ See also `History` | ||
r←'0.41.0+671' | ||
r←'0.41.1+671' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,14 @@ | ||
r←IsDotNetAvailable | ||
r←IsDotNetAvailable;res;parms;I | ||
⍝ Checks whether .NET (rather than .NET framework) is available at all. | ||
:Trap 11 ⍝ On Linux and Mac-OS, a DOMAIN ERROR will occur if .NET is not installed | ||
:If 0=r←∨/'.NETCore'⍷∊⎕CMD'dotnet --list-runtimes' | ||
r←∨/'\dotnet\'⍷∊⎕CMD'dotnet --list-sdks' | ||
⍝ We cannot do this in the current APL session on Windows because that might use .NET Framework but | ||
⍝ .NET might still be available, so we start a process which will exit with 125 for "yes", 126 for "no" | ||
⍝ and "123" for "error". | ||
:If 'Win'≡APLTreeUtils2.GetOperatingSystem ⍬ | ||
:If 0=r←1 1≡2↑2250⌶0 ⍝ The current APL ight already be configured for .NET | ||
parms←∆NuGetTestProcessParms ⍬ ⍬ | ||
I←⎕NEW APLProcess(,⊂parms) | ||
r←125=I.ExitCode | ||
:EndIf | ||
:Else | ||
r←0 | ||
:Endtrap | ||
r←1 1≡2↑2250⌶0 | ||
:EndIf |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters