Skip to content

Commit c96f847

Browse files
committed
servo: Merge #10749 - Prepare related files to make it easier to split up the Mako template (from servo:split-mako); r=nox
servo/servo#10586 (comment) r? nox Source-Repo: https://github.com/servo/servo Source-Revision: 3bfa4cc7414fea760ce5c503bfbcf25262acb9d7 UltraBlame original commit: 75af6f5e3e2d5876694d389cfcaf04de2120ab6e
1 parent f4029a9 commit c96f847

File tree

12 files changed

+2728
-2327
lines changed

12 files changed

+2728
-2327
lines changed

servo/components/style/build.rs

Lines changed: 16 additions & 150 deletions
Original file line numberDiff line numberDiff line change
@@ -66,24 +66,6 @@ use
6666
std
6767
:
6868
:
69-
fs
70-
:
71-
:
72-
File
73-
;
74-
use
75-
std
76-
:
77-
:
78-
io
79-
:
80-
:
81-
Write
82-
;
83-
use
84-
std
85-
:
86-
:
8769
path
8870
:
8971
:
@@ -98,7 +80,6 @@ process
9880
:
9981
{
10082
Command
101-
Stdio
10283
exit
10384
}
10485
;
@@ -313,7 +294,6 @@ main
313294
let
314295
python
315296
=
316-
match
317297
env
318298
:
319299
:
@@ -323,27 +303,18 @@ var
323303
PYTHON
324304
"
325305
)
326-
{
327-
Ok
306+
.
307+
ok
328308
(
329-
python_path
330309
)
331-
=
332-
>
333-
python_path
334-
Err
310+
.
311+
unwrap_or_else
335312
(
336-
_
337-
)
338-
=
339-
>
340313
find_python
341-
(
342314
)
343-
}
344315
;
345316
let
346-
style
317+
script
347318
=
348319
Path
349320
:
@@ -363,40 +334,20 @@ parent
363334
unwrap
364335
(
365336
)
366-
;
367-
let
368-
mako
369-
=
370-
style
371337
.
372338
join
373339
(
374340
"
375-
Mako
376-
-
377-
0
378-
.
379-
9
380-
.
381-
1
382-
.
383-
zip
341+
properties
384342
"
385343
)
386-
;
387-
let
388-
template
389-
=
390-
style
391344
.
392345
join
393346
(
394347
"
395-
properties
348+
build
396349
.
397-
mako
398-
.
399-
rs
350+
py
400351
"
401352
)
402353
;
@@ -426,7 +377,7 @@ servo
426377
}
427378
;
428379
let
429-
result
380+
status
430381
=
431382
Command
432383
:
@@ -436,52 +387,27 @@ new
436387
python
437388
)
438389
.
439-
env
440-
(
441-
"
442-
PYTHONPATH
443-
"
444-
&
445-
mako
446-
)
447-
.
448-
env
390+
arg
449391
(
450-
"
451-
TEMPLATE
452-
"
453392
&
454-
template
393+
script
455394
)
456395
.
457-
env
396+
arg
458397
(
459-
"
460-
PRODUCT
461-
"
462398
product
463399
)
464400
.
465401
arg
466402
(
467403
"
468-
generate_properties_rs
469-
.
470-
py
404+
style
405+
-
406+
crate
471407
"
472408
)
473409
.
474-
stderr
475-
(
476-
Stdio
477-
:
478-
:
479-
inherit
480-
(
481-
)
482-
)
483-
.
484-
output
410+
status
485411
(
486412
)
487413
.
@@ -491,8 +417,6 @@ unwrap
491417
;
492418
if
493419
!
494-
result
495-
.
496420
status
497421
.
498422
success
@@ -504,62 +428,4 @@ exit
504428
1
505429
)
506430
}
507-
let
508-
out
509-
=
510-
env
511-
:
512-
:
513-
var
514-
(
515-
"
516-
OUT_DIR
517-
"
518-
)
519-
.
520-
unwrap
521-
(
522-
)
523-
;
524-
File
525-
:
526-
:
527-
create
528-
(
529-
&
530-
Path
531-
:
532-
:
533-
new
534-
(
535-
&
536-
out
537-
)
538-
.
539-
join
540-
(
541-
"
542-
properties
543-
.
544-
rs
545-
"
546-
)
547-
)
548-
.
549-
unwrap
550-
(
551-
)
552-
.
553-
write_all
554-
(
555-
&
556-
result
557-
.
558-
stdout
559-
)
560-
.
561-
unwrap
562-
(
563-
)
564-
;
565431
}

0 commit comments

Comments
 (0)