-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdist.ps1
51 lines (46 loc) · 1.62 KB
/
dist.ps1
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
New-Item -Type Directory dist -Force
if (Test-Path dist\rda.ahk -ne $null) {
Remove-Item dist\rda.ahk -Force
}
$files = @(
".\UIAutomation\Lib\UIA_Constants.ahk",
".\UIAutomation\Lib\UIA_Interface.ahk",
".\src\RDA_Functions.ahk",
# CONFIG: choose one or use your own
".\src\RDA_Functions_Log.ahk",
#".\src\RDA_Functions_NoLog.ahk",
".\src\RDA_Base.ahk",
".\src\RDA_Automation.ahk",
".\src\RDA_AutomationBaseElement.ahk",
".\src\RDA_ElementTreeNode.ahk",
".\src\RDA_AutomationClipboard.ahk",
".\src\RDA_AutomationJAB.ahk",
".\src\RDA_AutomationJABAccessibleContextInfo.ahk",
".\src\RDA_AutomationJABElement.ahk",
".\src\RDA_AutomationKeyboard.ahk",
".\src\RDA_AutomationMouse.ahk",
".\src\RDA_AutomationUIA.ahk",
".\src\RDA_AutomationUIAElement.ahk",
".\src\RDA_AutomationWindow.ahk",
".\src\RDA_AutomationWindows.ahk",
".\src\RDA_AutomationWindowSearch.ahk",
".\src\RDA_Rectangle.ahk",
".\src\RDA_ScreenPosition.ahk",
".\src\RDA_ScreenRegion.ahk",
".\src\RDA_SearchLimits.ahk",
".\src\RDA_Monitors.ahk",
".\src\RDA_VirtualDesktops.ahk",
".\src\RDA_AutomationLayout.ahk"
".\src\RDA_WindowPosition.ahk"
)
$contents = ""
foreach ($file in $files) {
$contents += Get-Content $file -Encoding UTF8 -Raw
}
#$contents = $contents -replace "(?:\/\*(?:\n|\r|.)*?\*\/)", "`n`n"
#$contents = $contents -replace '(?sm)/\*.*?\*/|^[ \t]*//[^\r\n]*', ""
#$contents = $contents -replace '(?sm)/\*.*?\*/', "" | ? {$_.trim() -ne "" }
$contents = $contents -replace '(?sm)/\*.*?\*/', ""
#$contents = $contents -replace "(?m)^\s*`r`n",''
$contents = $contents -replace "(?m)^\s*`n",''
$contents >> dist\rda.ahk