-
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
17 changed files
with
50 additions
and
35 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,27 +1,32 @@ | ||
r←{current}GetProgramFilesFolder postFix;version;aplVersion;OS | ||
r←{current}GetProgramFilesFolder subFolder;version;aplVersion;OS | ||
⍝ Returns path to Dyalog's program files folder.\\ | ||
⍝ Comes always with a trailing separator.\\ | ||
⍝ * By default it returns the version agnostic folder | ||
⍝ * If ⍺=1 then it returns the folder for the currently running APL | ||
⍝ Works on all platforms but returns different results.\\ | ||
⍝ Under Windows typically:\\ | ||
⍝ `C:\Users\<⎕AN>\Documents\Dyalog APL Files' ←→ GetProgramFilesFolder '' | ||
⍝ without OneDrive or, with OneDrive: | ||
⍝ `C:\Users\<⎕AN>\OneDrive\Documents\Dyalog APL Files' ←→ GetProgramFilesFolder '' | ||
⍝ When a 1 is passed as ⍺ and it's running on 19.0-64 bit Unicode: | ||
⍝ `C:\Users\<⎕AN>\Documents\Dyalog APL[-64] 19.0 Unicode Files' ←→ 1 GetProgramFilesFolder '' | ||
⍝ `C:\Users\<⎕AN>\Documents\Dyalog APL-64 19.0 Unicode Files' ←→ 1 GetProgramFilesFolder '' | ||
⍝ or, with OneDrive: | ||
⍝ `C:\Users\<⎕AN>\OneDrive\Documents\Dyalog APL-64 19.0 Unicode Files' ←→ 1 GetProgramFilesFolder '' | ||
current←{0<⎕NC ⍵:⍎⍵ ⋄ 0}'current' | ||
OS←3↑1⊃# ⎕WG'APLVersion' | ||
postFix←##.FilesAndDirs.AddTrailingSep postFix | ||
subFolder,←{(~(¯1↑⍵)∊'/\')/'/'}subFolder | ||
aplVersion←# ⎕WG'APLVersion' | ||
:If current | ||
:If OS≡'Win' | ||
r←GetCurrentAPLsFolderInDocuments,postFix | ||
r←GetCurrentAPLsFolderInDocuments,{⍵↓⍨-(,'/')≡⍵}subFolder | ||
:Else | ||
version←({'.'~⍨⍵/⍨2>+\⍵='.'}2⊃aplVersion),((80=⎕DR' ')/'U'),((1+∨/'-64'⍷1⊃aplVersion)⊃'32' '64') | ||
r←(⊃⎕SH'echo $HOME'),'/dyalog.',version,'.files',postFix | ||
r←(⊃⎕SH'echo $HOME'),'/dyalog.',version,'.files',subFolder | ||
:EndIf | ||
:Else | ||
:If OS≡'Win' | ||
r←GetUserDocumentsFolder,'Dyalog APL Files',postFix | ||
r←GetUserDocumentsFolder,'Dyalog APL Files',{0<≢⍵~'/\':'/',⍵ ⋄ ⍵}subFolder | ||
:Else | ||
r←(⊃⎕SH'echo $HOME'),'/dyalog.files',postFix | ||
r←(⊃⎕SH'echo $HOME'),'/dyalog.files',subFolder | ||
:EndIf | ||
: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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,4 @@ | ||
r←GetUserDocumentsFolder | ||
⍝ Get user documents folder. Works okay when the Documents/ folder is on OneDrive. | ||
r←⊃⎕NPARTS GetCurrentAPLsFolderInDocuments | ||
⍝ Comes always with a trailing separator. | ||
r←⊃⎕NPARTS ¯1↓GetCurrentAPLsFolderInDocuments |
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←'Tatin' '0.114.0+1977' '2024-09-30' | ||
r←'Tatin' '0.114.0+1978' '2024-09-30' |
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,8 +1,9 @@ | ||
RunTests;htmlFilename;log;rc | ||
Prepare | ||
RunTests;htmlFilename;log;rc;codeCoverageFlag | ||
codeCoverageFlag←Prepare | ||
(rc log)←T.Run 1 | ||
|
||
:If 0 ##.Client.YesOrNo'View CodeCoverage report?' | ||
:If codeCoverageFlag | ||
:AndIf 0 ##.Client.YesOrNo'View CodeCoverage report?' | ||
htmlFilename←##.CodeCoverage.ProcessDataAndCreateReport T.codeCoverage.filename | ||
##.APLTreeUtils2.GoToWebPage htmlFilename | ||
: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
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 |
---|---|---|
|
@@ -20,5 +20,5 @@ | |
source: "APLTreeUtils.apln", | ||
tags: "", | ||
userCommandScript: "", | ||
version: "6.0.0+233", | ||
version: "6.0.0+234", | ||
} |
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 |
---|---|---|
|
@@ -20,5 +20,5 @@ | |
source: "FilesAndDirs.aplc", | ||
tags: "", | ||
userCommandScript: "", | ||
version: "3.0.0+233", | ||
version: "3.0.0+234", | ||
} |
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 |
---|---|---|
|
@@ -20,5 +20,5 @@ | |
source: "OS.aplc", | ||
tags: "foo,boo", | ||
userCommandScript: "", | ||
version: "2.0.0+749", | ||
version: "2.0.0+752", | ||
} |
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