File tree Expand file tree Collapse file tree 1 file changed +11
-1
lines changed Expand file tree Collapse file tree 1 file changed +11
-1
lines changed Original file line number Diff line number Diff line change 13
13
* are then exported into the .m package file.
14
14
* *)
15
15
16
- BeginPackage ["Rubi`RubiPackageTools`" ];
16
+ BeginPackage ["Rubi`RubiPackageTools`" , "PacletManager`" ];
17
17
18
18
BuildIntegrationRules ::usage = "BuildIntegrationRules[] creates the .m package files for the rules from the notebooks" ;
19
+ DeployRubi ::usage = "DeployRubi[] creates a paclet and zip of the current release and puts it in the parent folder of the Rubi sources." ;
19
20
20
21
Begin ["`Private`" ];
21
22
$dir = DirectoryName @ System ` Private ` $InputFileName ;
52
53
sectionComment [message_ String ] := TemplateApply ["\n (* ::Section:: *)\n (* `` *)" , message ];
53
54
subSectionComment [message_ String ] := TemplateApply ["\n (* ::Subsection::Closed:: *)\n (* `` *)" , message ];
54
55
56
+ DeployRubi [] := Module [{file },
57
+ file = PackPaclet [$dir ];
58
+ file = StringReplace [file , ".paclet" -> ".zip" ];
59
+ If [FileExistsQ [file ],
60
+ DeleteFile [file ]
61
+ ];
62
+ CreateArchive [$dir , file ];
63
+ ];
64
+
55
65
End []; (* `Private` *)
56
66
57
67
EndPackage []
You can’t perform that action at this time.
0 commit comments