Skip to content
This repository was archived by the owner on Aug 31, 2021. It is now read-only.

Commit 97eabcd

Browse files
committed
[[ PackageExtensions ]] Convert args to readable var names
1 parent ba4e1d8 commit 97eabcd

File tree

1 file changed

+36
-7
lines changed

1 file changed

+36
-7
lines changed

util/package_extension.livecodescript

Lines changed: 36 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -6,21 +6,50 @@ on doPackage
66
local tArgs
77
put the commandArguments into tArgs
88

9-
if tArgs[10] is true and not (tArgs[8] ends with ".lcb") then
10-
protectStack the commandName, tArgs[2], tArgs[7], tArgs[8], tArgs[3], tArgs[4]
9+
local tProtectifyScript, tProtectifyOutput, tGitHash
10+
put tArgs[2] into tProtectifyScript
11+
put tArgs[3] into tProtectifyOutput
12+
put tArgs[4] into tGitHash
13+
14+
local tExtractDocsScript, tDocsParser
15+
put tArgs[5] into tExtractDocsScript
16+
put tArgs[6] into tDocsParser
17+
18+
local tSourceFolder, tSourceFileName, tTargetFolder
19+
put tArgs[7] into tSourceFolder
20+
put tArgs[8] into tSourceFileName
21+
put tArgs[9] into tTargetFolder
22+
23+
local tCommercialExtension
24+
put tArgs[10] into tCommercialExtension
25+
26+
local tLCCompile, tInterfaceFolder
27+
put tArgs[11] into tLCCompile
28+
put tArgs[12] into tInterfaceFolder
29+
30+
if tCommercialExtension is true and \
31+
not (tSourceFileName ends with ".lcb") then
32+
protectStack the commandName, tProtectifyScript, tSourceFolder, \
33+
tSourceFileName, tProtectifyOutput, tGitHash
1134
end if
1235

13-
extractDocs the commandName, tArgs[5], tArgs[6], tArgs[7], tArgs[8]
36+
extractDocs the commandName, tExtractDocsScript, tDocsParser, \
37+
tSourceFolder, tSourceFileName
1438

1539
local tPackage
16-
if not (tArgs[8] ends with ".lcb") then
17-
packageScriptExtension tArgs[7], tArgs[8], tArgs[9], tArgs[10]
40+
if not (tSourceFileName ends with ".lcb") then
41+
packageScriptExtension tSourceFolder, tSourceFileName, \
42+
tTargetFolder, tCommercialExtension
1843
else
19-
packageBuilderExtension tArgs[7], tArgs[8], tArgs[9], tArgs[10], tArgs[11], tArgs[12]
44+
packageBuilderExtension tSourceFolder, tSourceFileName, \
45+
tTargetFolder, tCommercialExtension, tLCCompile, \
46+
tInterfaceFolder
2047
end if
2148
put the result into tPackage
2249

23-
extractExtension tPackage, tArgs[7], tArgs[9], tArgs[10]
50+
extractExtension tPackage, tSourceFolder, tTargetFolder, \
51+
tCommercialExtension
52+
2453
quit 0
2554
end doPackage
2655

0 commit comments

Comments
 (0)