-
Notifications
You must be signed in to change notification settings - Fork 11
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
69 additions
and
47 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 |
---|---|---|
@@ -1,15 +1,15 @@ | ||
#!/usr/local/bin/scale | ||
#!/usr/bin/env scale | ||
|
||
| scapeParentDirectory scaleX scaleuiX | | ||
| scaleParentDirectory | | ||
|
||
system stdout << 'Uninstalling scale' << String cr. | ||
|
||
system saveImageAs: #/ asFileReference / #tmp / #'uninstall.image'. | ||
" The image must be stored elsewhere for deleting all the files " | ||
|
||
scapeParentDirectory := (system home / '.scale') asFileReference. | ||
scaleParentDirectory := (system home / '.scale') asFileReference. | ||
|
||
scapeParentDirectory exists ifTrue: [ system call: ' rm -rf ', scapeParentDirectory fullName ]. | ||
system stdout << 'Removing scale folder' << String cr ; flush. | ||
system stdout << 'Removing scale folder...' << String cr ; flush. | ||
scaleParentDirectory exists ifTrue: [ system call: ' rm -rf ', scaleParentDirectory fullName ]. | ||
|
||
system stdout << 'Done!' << String cr. |
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,4 +1,4 @@ | ||
#!/usr/local/bin/scale | ||
#!/usr/bin/env scale | ||
|
||
system stdout << 'Doing a wrong call'. | ||
system stdout cr. | ||
|
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,4 +1,4 @@ | ||
#!/usr/local/bin/scale | ||
#!/usr/bin/env scale | ||
|
||
| got | | ||
|
||
|
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,4 +1,4 @@ | ||
#!/usr/local/bin/scale | ||
#!/usr/bin/env scale | ||
|
||
| fact | | ||
|
||
|
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,4 +1,4 @@ | ||
#!/usr/local/bin/scale | ||
#!/usr/bin/env scale | ||
|
||
system stdout << 'print to stdout';cr. | ||
|
||
|
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,4 +1,4 @@ | ||
#!/usr/local/bin/scale | ||
#!/usr/bin/env scale | ||
|
||
(system call: 'ls -l') lines do: [ :line | | ||
system stdout << line. | ||
|
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,4 +1,4 @@ | ||
#!/usr/local/bin/scale | ||
#!/usr/bin/env scale | ||
|
||
system pwd entries do: [ :entry | | ||
system stdout << entry asString. | ||
|
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,4 +1,4 @@ | ||
#!/usr/local/bin/scale | ||
#!/usr/bin/env scale | ||
|
||
|
||
| futurels | | ||
|
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,4 +1,4 @@ | ||
#!/usr/local/bin/scale | ||
#!/usr/bin/env scale | ||
|
||
|
||
| futurels | | ||
|
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,4 +1,4 @@ | ||
#!/usr/local/bin/scale | ||
#!/usr/bin/env scale | ||
|
||
|
||
| futurels | | ||
|
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 @@ | ||
#!/usr/bin/env scale | ||
|
||
| locator path | | ||
|
||
path := (FileLocator home) path. | ||
|
||
FileSystem disk changeDirectory: ((OSEnvironment current at: 'PWD') asFileReference). | ||
|
||
"system stdout << (OSEnvironment current at: 'PWD'); cr." | ||
|
||
system stdout << (system pwd fullName); cr. | ||
system stdout << (FileSystem disk workingDirectory fullName); cr. | ||
system stdout << ((system home / '.config') fullName); cr. | ||
|
||
|
||
system stdout << (system class selectors joinUsing: '\r\n') |
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 @@ | ||
#!/usr/local/bin/scale | ||
#!/usr/bin/env scale | ||
|
||
system stdout << 'hello' |
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,4 +1,4 @@ | ||
#!/bin/bash | ||
|
||
|
||
/usr/local/pharo/pharo-ui /usr/local/scale/Pharo.image scale "$@" | ||
$HOME/.scale/pharo/pharo-ui $HOME/.scale/scale/Pharo.image scale "$@" |
2 changes: 1 addition & 1 deletion
2
src/Scale.package/SCScaleCodeManager.class/class/interpreter.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 |
---|---|---|
@@ -1,3 +1,3 @@ | ||
as yet unclassified | ||
interpreter | ||
^ '#!/usr/local/bin/scale' | ||
^ '#!/usr/bin/env scale' |