82 We do not need these packages as a prerequisite for loading or compiling. |
88 We do not need these packages as a prerequisite for loading or compiling. |
83 This method is generated automatically, |
89 This method is generated automatically, |
84 by searching all classes (and their packages) which are referenced by my classes." |
90 by searching all classes (and their packages) which are referenced by my classes." |
85 |
91 |
86 ^ #( |
92 ^ #( |
|
93 #'stx:goodies/monticello' "MCDirectoryRepository - referenced by stx_goodies_petitparser class>>exportAsMczTo:" |
|
94 #'stx:libscm/mercurial/monticello' "HGMCVersionInfo - referenced by stx_goodies_petitparser class>>exportAsMczTo:" |
87 ) |
95 ) |
88 ! |
96 ! |
89 |
97 |
90 stcOptimizationOptions |
98 stcOptimizationOptions |
91 "do not inline the not operation here - it is overwritten" |
99 "do not inline the not operation here - it is overwritten" |
112 postLoadAction |
120 postLoadAction |
113 |
121 |
114 "/self classes do: [:cls|cls isLoaded ifFalse:[cls autoload]] |
122 "/self classes do: [:cls|cls isLoaded ifFalse:[cls autoload]] |
115 |
123 |
116 "Created: / 17-12-2010 / 19:55:52 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
124 "Created: / 17-12-2010 / 19:55:52 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
|
125 ! ! |
|
126 |
|
127 !stx_goodies_petitparser class methodsFor:'description - compilation'! |
|
128 |
|
129 additionalRules_make_dot_proto |
|
130 "allows for additional rules to be added to the make.proto file." |
|
131 |
|
132 ^ ' |
|
133 mc: |
|
134 mkdir mc |
|
135 |
|
136 mcz: mc |
|
137 $(TOP)/projects/smalltalk/smalltalk --eval " \ |
|
138 Smalltalk packagePath add:''$(TOP)'' . \ |
|
139 Smalltalk loadPackage:''stx:goodies/petitparser''. \ |
|
140 (Smalltalk at: #''stx_goodies_petitparser'') exportAsMczTo: ''mc''." |
|
141 |
|
142 ' |
|
143 |
|
144 "Created: / 04-10-2014 / 21:45:55 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
117 ! ! |
145 ! ! |
118 |
146 |
119 !stx_goodies_petitparser class methodsFor:'description - contents'! |
147 !stx_goodies_petitparser class methodsFor:'description - contents'! |
120 |
148 |
121 classNamesAndAttributes |
149 classNamesAndAttributes |
270 This number is updated after a commit" |
298 This number is updated after a commit" |
271 |
299 |
272 ^ "$SVN-Revision:"'11 '"$" |
300 ^ "$SVN-Revision:"'11 '"$" |
273 ! ! |
301 ! ! |
274 |
302 |
|
303 !stx_goodies_petitparser class methodsFor:'utilities - monticello'! |
|
304 |
|
305 exportAsMczTo: directory |
|
306 "Export .mcz packages to given directory" |
|
307 |
|
308 | packages exporter mcrepo | |
|
309 |
|
310 Smalltalk loadPackage: 'stx:goodies/monticello'. |
|
311 Smalltalk loadPackage: 'stx:libscm/mercurial/monticello'. |
|
312 Class tryLocalSourceFirst: true. |
|
313 |
|
314 |
|
315 packages := #( |
|
316 'stx:goodies/petitparser' |
|
317 'stx:goodies/petitparser/tests' |
|
318 'stx:goodies/petitparser/analyzer' |
|
319 'stx:goodies/petitparser/analyzer/tests' |
|
320 ). |
|
321 |
|
322 exporter := [:pkgnm| |
|
323 | mcpkg mcwc mcvi mcversion | |
|
324 |
|
325 Smalltalk loadPackage: pkgnm. |
|
326 mcpkg := MCPackage named: pkgnm. |
|
327 mcwc := mcpkg workingCopy. |
|
328 mcvi := HGMCVersionInfo forPackage: pkgnm. |
|
329 [ |
|
330 mcversion := mcwc newVersion |
|
331 ] on: MCVersionNameAndMessageRequest do:[:ex | |
|
332 ex resume: (Array with: mcvi name with: mcvi message) |
|
333 ]. |
|
334 mcversion info: mcvi. |
|
335 mcrepo storeVersion: mcversion. |
|
336 ]. |
|
337 |
|
338 mcrepo := MCDirectoryRepository new directory: directory. |
|
339 packages do: exporter. |
|
340 |
|
341 " |
|
342 stx_goodies_petitparser exportAsMczTo: '/tmp' |
|
343 " |
|
344 |
|
345 "Created: / 04-10-2014 / 21:30:53 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
|
346 ! ! |
|
347 |
275 !stx_goodies_petitparser class methodsFor:'documentation'! |
348 !stx_goodies_petitparser class methodsFor:'documentation'! |
276 |
349 |
277 version |
350 version |
278 ^ '$Header: /cvs/stx/stx/goodies/petitparser/stx_goodies_petitparser.st,v 1.15 2014-03-04 20:30:48 cg Exp $' |
351 ^ '$Header: /cvs/stx/stx/goodies/petitparser/stx_goodies_petitparser.st,v 1.15 2014-03-04 20:30:48 cg Exp $' |
279 ! |
352 ! |