-
Notifications
You must be signed in to change notification settings - Fork 24
/
Copy pathpackage_out.il
39 lines (36 loc) · 900 Bytes
/
package_out.il
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
axlCmdRegister("pkg", 'package_out)
defun(package_out ()
file = axlTempFile()
port = outfile(file)
prog((i all addr)
axlSetFindFilter(
?enabled '("noall" "symbols")
?onButtons '("noall" "symbols")
)
while(axlSelect()
axlHighlightObject(axlGetSelSet())
all = axlGetSelSet()
)
axlClearSelSet()
case(axlUIGetUserData()->doneState
(done
when(!all
fprintf(port, "\316\264\321\241\324\361\310\316\272\316\306\367\274\376") return(nil)
)
addr = axlDMDirectoryBrowse("." t)
when(!stringp(addr) printf("Cancel\n") return(nil))
foreach(i all
;printf("%L", i)
if(axlWritePackageFile(i->definition addr) then
fprintf(port, "%s has been exported.\n", i->name)
else
fprintf(port, "%s export failed.\n", i->name)
)
)
)
(cancel printf("Cancel\n"))
)
)
close(port)
axlUIWExpose(axlUIViewFileCreate(file "Package Export" t))
)