-
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
137 changed files
with
1,678 additions
and
367 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 |
---|---|---|
@@ -0,0 +1,24 @@ | ||
{r}←{targetFolder}CopyScriptsFromPackagesIn path2Packages;packages;i;package;packageID;packageName;fullName;F | ||
⍝ Copy scripts installed in `path2Packages` over to `targetFolder` which defaults to APLSource/ | ||
⍝ Note that packages that are not just scripts are NOT handled. CommTools and FilesAndDirs are examples. | ||
⍝ This function is called by `CheckForLaterVersion`. | ||
r←0 | ||
F←##.FilesAndDirs | ||
targetFolder←{0<⎕NC ⍵:⍎⍵ ⋄ './APLSource/'}'targetFolder' | ||
packages←{⍵.packageID}##.Registry.APLfromJSON⊃⎕NGET path2Packages,'/apl-buildlist.json' | ||
:For i package :InEach (⍳≢packages)packages | ||
packageID←⊃,/1↓⎕NPARTS package | ||
packageName←{{⍵↑⍨¯1+⍵⍳'-'}⍵↓⍨⍵⍳'-'}packageID | ||
fullName←⊃F.Dir targetFolder,'/',packageName,'.*' | ||
:If 0=≢fullName | ||
:If F.IsDir path2Packages,'/',packageID,'/APLSource' | ||
r∨←(targetFolder,'/')(⎕NCOPY⍠('IfExists' 'ReplaceIfNewer')('Wildcard' 1)F.ExecNfunction)path2Packages,'/',packageID,'/APLSource/*' | ||
:Else | ||
r∨←(targetFolder,'/')(⎕NCOPY⍠('IfExists' 'ReplaceIfNewer')('Wildcard' 1)F.ExecNfunction)path2Packages,'/',packageID,'/',packageName,'*' | ||
:EndIf | ||
:Else ⍝ Simple files | ||
fullName←⊃F.Dir path2Packages,'/',package,'/',packageName,'.*' | ||
r∨←(targetFolder,'/')(⎕NCOPY⍠('IfExists' 'ReplaceIfNewer')F.ExecNfunction)fullName | ||
:EndIf | ||
:EndFor | ||
⍝Done |
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 |
---|---|---|
@@ -0,0 +1,9 @@ | ||
{r}←HandleRunFunction dummy;myZip;zipFilename | ||
⍝ Copies the "Run.aplf" function and also creates a ZIP file for it | ||
r←0 | ||
'./Dist/'⎕NCOPY⍠('IfExists' 'Replace')⊣'Run.aplf' | ||
zipFilename←'./Dist/Run.zip' | ||
myZip←⎕NEW ##.ZipArchive(,⊂zipFilename) | ||
F.PWD myZip.Add'Run.aplf' | ||
myZip.Dispose | ||
⍝Done |
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 |
---|---|---|
@@ -0,0 +1,5 @@ | ||
pkgCfg←AddTatinVersionNumber pkgCfg | ||
⍝ Inject or update the tatin version number the package configuration was created / changed by. | ||
⍝ `pkgCfg` is a namespace with values | ||
pkgCfg.tatin_version←{⍵↑⍨¯1+⍵⍳'+'}2⊃Reg.Version | ||
⍝Done |
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
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
Oops, something went wrong.