-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Generalize UCMD installation for any project
- Loading branch information
1 parent
ea27924
commit 94164b5
Showing
7 changed files
with
40 additions
and
36 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
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,10 @@ | ||
SetAppConfig←{ | ||
⍝ ⍵ ←→ Application Folder | ||
⍝ ← ←→ Primary Project Space | ||
d←{0=≢⍵:↑⎕NPARTS ⎕WSID ⋄ ⍵}⍵ | ||
r←⎕THIS.##.## | ||
c←GetConfigSpace¨d∘,¨r.Packages,¨'/' | ||
s←r⍎¨2↓¨c.ProjectSpace | ||
s.AcreConfig←s.⎕NS c | ||
↑s | ||
} |
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,7 @@ | ||
StartApplication←{ | ||
⍝ ⍵ ←→ n/a | ||
p←↑⎕NPARTS ⎕WSID | ||
c←GetConfigSpace¨p∘,¨#.Packages,¨'/' | ||
s←⍎¨c.ProjectSpace | ||
s.AcreConfig←s.⎕NS c | ||
0=(↑c).⎕NC'ApplicationStartup':'' | ||
(↑s)⍎(↑c).ApplicationStartup | ||
s←SetAppConfig 0 | ||
c←s.AcreConfig | ||
0=c.⎕NC'ApplicationStartup':'' | ||
s⍎c.ApplicationStartup | ||
} |
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,23 @@ | ||
:namespace ucmd | ||
⍝ AcreTools User Command File | ||
⍝ This file is identical for any Acre-based user command project. | ||
⎕IO ⎕ML←0 1 | ||
GetProjectSpace←{ | ||
9=⎕NC 'ProjectSpace':ProjectSpace | ||
f←{6::##.t ⋄ SALT_Data.SourceFile} 0 | ||
s←⎕NS '' | ||
_←s.⎕CY '.dws',⍨(⊃⌽⍸'_'=f)↑f | ||
r←s.CarlisleGroup.AcreTools.SetAppConfig ⊃⎕NPARTS f | ||
⎕THIS.ProjectSpace←r | ||
r | ||
} | ||
∇ z←List | ||
z←(GetProjectSpace 0).UserCommandList 0 | ||
∇ | ||
Help←{ | ||
(GetProjectSpace 0).UserCommandHelp ⍵ | ||
} | ||
Run←{ | ||
(GetProjectSpace 0).UserCommandRun ⍵ | ||
} | ||
:endnamespace |
This file was deleted.
Oops, something went wrong.
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