File tree Expand file tree Collapse file tree 2 files changed +15
-13
lines changed Expand file tree Collapse file tree 2 files changed +15
-13
lines changed Original file line number Diff line number Diff line change 1
1
param ([switch ]$DontUpload = $False )
2
2
3
- $here = $MyInvocation.MyCommand.Definition
4
- $here = split-path $here - parent
5
- $root = resolve-path (join-path $here " .." )
6
-
3
+ # PowerShell 3 defines PSScriptRoot in scripts
4
+ $root = split-path $PSScriptRoot - parent
5
+ $dist = Join-Path $root " dist"
7
6
push-location $root
8
- remove-item " .\dist" - recurse - force
7
+
8
+ if (Test-Path $dist ) {
9
+ Write-Warning " Removing $dist \*"
10
+ remove-item $dist \* - recurse - force
11
+ }
9
12
# Ensure MANIFEST reflects all changes to file system.
10
- remove-item " .\MANIFEST" - erroraction silentlycontinue
11
- start-process " python" - argumentlist " .\setup.py" , " spa" - NoNewWindow - Wait
13
+ remove-item " .\MANIFEST" - ErrorAction silentlycontinue
14
+
15
+ python (Join-Path $root .\setup.py) spa | Write-Host - fore cyan
12
16
13
17
(get-item " .\dist\PowerShell.sublime-package" ).fullname | clip.exe
18
+
14
19
pop-location
15
20
16
- if (-not $DontUpload ) {
17
- start-process " https://bitbucket.org/guillermooo/powershell/downloads"
18
- }
Original file line number Diff line number Diff line change 1
- include *.sublime-*
2
- include *.tmLanguage
3
- include *.tmPreferences
1
+ include Support\ *.sublime-*
2
+ include Support\ *.tmLanguage
3
+ include Support\ *.tmPreferences
4
4
include LICENSE.txt
5
5
6
6
exclude *.sublime-project
You can’t perform that action at this time.
0 commit comments