-
Notifications
You must be signed in to change notification settings - Fork 37
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Issue #261: checkpoint ... starting work on copyScriptClasses.st -- c…
…onvert scripts between filetree format (editable in tODE) and tonel format (executable format) [ci skip]
- Loading branch information
1 parent
513fcf8
commit 76faa2f
Showing
10 changed files
with
111 additions
and
5 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,45 @@ | ||
#!/usr/bin/env gsdevkit_launcher | ||
" | ||
Copy script classes back and forth between Tonel and FileTree formats. | ||
For the work on https://github.com/GsDevKit/GsDevKit_home/issues/260 it is | ||
convenient/necessary to develop scripts using tODE which currently does not | ||
support reading/writing Tonel format. Of course in order to EXECUTE a tonel | ||
class file-based script, it must be in Tonel format. So this script will do | ||
the work of copying classes back and forth between Monticello FileTree packages | ||
and Rown Tonel packages. | ||
" | ||
Class { | ||
#name : 'GdkL_CopyScriptClasses', | ||
#superclass : 'AbstractGsDevKitProgram', | ||
#category : 'gsdevKit_launcher-Scripts' | ||
} | ||
|
||
{ #category : 'private' } | ||
GdkL_CopyScriptClasses >> _projectDefinitionForUrl: rowanSpecUrl [ | ||
| projectDef | | ||
projectDef := (self _projectDefinitionClass newForUrl: rowanSpecUrl) | ||
projectHome: '$GS_HOME/shared/repos/'; | ||
yourself. | ||
projectDef read. | ||
^ projectDef | ||
] | ||
|
||
{ #category : 'private' } | ||
GdkL_CopyScriptClasses >> _projectDefinitionClass [ | ||
^ ((AllUsers userWithId: 'SystemUser') objectNamed: 'RwComponentProjectDefinition') | ||
] | ||
|
||
{ #category : 'main' } | ||
GdkL_CopyScriptClasses >> main [ | ||
| projectDefinition_filetree projectDefinition_tonel | | ||
projectDefinition_filetree := self _projectDefinitionForUrl: 'file:$GS_HOME/shared/repos/GsDevKit_launcher/rowan/specs/gsdevkit_launcher_filetree.ston'. | ||
projectDefinition_tonel := self _projectDefinitionForUrl: 'file:$GS_HOME/shared/repos/GsDevKit_launcher/rowan/specs/gsdevkit_launcher_tonel.ston'. | ||
|
||
self halt. | ||
|
||
projectDefinition_filetree export. | ||
projectDefinition_tonel export. | ||
] |
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
20 changes: 20 additions & 0 deletions
20
shared/repos/GsDevKit_launcher/rowan/components/Scripts.ston
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,20 @@ | ||
RwComponentLoadConfiguration { | ||
#name : 'Scripts', | ||
#comment : 'copyScriptClasses.st support - tonel/filetree packages', | ||
#version : '0.1.0', | ||
#conditionalPackages : { | ||
[ | ||
'common' | ||
] : { | ||
'core' : { | ||
#packageNames : [ | ||
'gsdevkit_launcher-Scripts' | ||
] | ||
} | ||
} | ||
}, | ||
#conditionalPackageMapSpecs : { }, | ||
#definedGroupNames : { | ||
'core' : [ ] | ||
} | ||
} |
Empty file.
1 change: 1 addition & 0 deletions
1
shared/repos/GsDevKit_launcher/rowan/scripts/gsdevkit_launcher-Scripts/package.st
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 @@ | ||
Package { #name : 'gsdevkit_launcher-Scripts' } |
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,4 @@ | ||
{ | ||
#format : 'tonel', | ||
#convention : 'RowanHybrid' | ||
} |
16 changes: 16 additions & 0 deletions
16
shared/repos/GsDevKit_launcher/rowan/specs/gsdevkit_launcher_filetree.ston
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,16 @@ | ||
RwComponentSpecification{ | ||
#specName : 'GsDevKit_launcher_filetree', | ||
#projectAlias : 'GsDevKit_launcher_filetree', | ||
#projectName : 'GsDevKit_launcher', | ||
#version : '0.3.0', | ||
#projectUrl : 'https://github.com/GsDevKit_home', | ||
#configsPath : 'rowan/components', | ||
#projectsPath : 'rowan/projects', | ||
#repoPath : 'rowan/src', | ||
#specsPath : 'rowan/specs', | ||
#defaultComponentName : 'Scripts', | ||
#defaultGroupNames : [ | ||
'core' | ||
], | ||
#comment : 'copyScriptClasses.st support - tonel scripts' | ||
} |
16 changes: 16 additions & 0 deletions
16
shared/repos/GsDevKit_launcher/rowan/specs/gsdevkit_launcher_tonel.ston
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,16 @@ | ||
RwComponentSpecification{ | ||
#specName : 'GsDevKit_launcher_tonel', | ||
#projectAlias : 'GsDevKit_launcher_tonel', | ||
#projectName : 'GsDevKit_launcher', | ||
#version : '0.3.0', | ||
#projectUrl : 'https://github.com/GsDevKit_home', | ||
#configsPath : 'rowan/components', | ||
#projectsPath : 'rowan/projects', | ||
#repoPath : 'rowan/scripts', | ||
#specsPath : 'rowan/specs', | ||
#defaultComponentName : 'Scripts', | ||
#defaultGroupNames : [ | ||
'core' | ||
], | ||
#comment : 'copyScriptClasses.st support - tonel scripts' | ||
} |
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,4 @@ | ||
{ | ||
#format : 'filetree', | ||
#convention : 'RowanHybrid' | ||
} |