File tree Expand file tree Collapse file tree 2 files changed +5
-5
lines changed Expand file tree Collapse file tree 2 files changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -362,6 +362,7 @@ def create_mingw_archives(self) -> None:
362
362
("WhatsNew.txt" , "" ),
363
363
("LICENSE.txt" , "" ),
364
364
("README.md" , "" ),
365
+ ("docs/*.md" , "docs/" ),
365
366
)
366
367
test_files = list (Path (r ) / f for r , _ , files in os .walk (self .root / "test" ) for f in files )
367
368
@@ -374,10 +375,11 @@ def create_mingw_archives(self) -> None:
374
375
logger .info ("Creating %s..." , tar_paths [comp ])
375
376
with tarfile .open (tar_paths [comp ], f"w:{ comp } " ) as tar_object :
376
377
arc_root = f"{ self .project } -{ self .version } "
377
- for file_path , arcdirname in extra_files :
378
+ for file_path_glob , arcdirname in extra_files :
378
379
assert not arcdirname or arcdirname [- 1 ] == "/"
379
- arcname = f"{ arc_root } /{ arcdirname } { Path (file_path ).name } "
380
- tar_object .add (self .root / file_path , arcname = arcname )
380
+ for file_path in glob .glob (file_path_glob , root_dir = self .root ):
381
+ arcname = f"{ arc_root } /{ arcdirname } { Path (file_path ).name } "
382
+ tar_object .add (self .root / file_path , arcname = arcname )
381
383
for arch in mingw_archs :
382
384
install_path = arch_install_paths [arch ]
383
385
arcname_parent = f"{ arc_root } /{ arch } -w64-mingw32"
Original file line number Diff line number Diff line change @@ -21,8 +21,6 @@ install-package:
21
21
(cd $( arch) && cp -rv bin include lib share $( prefix) /); \
22
22
sed " s|^prefix=.*|prefix=$( prefix) |" < $(arch ) /bin/sdl2-config > $(prefix ) /bin/sdl2-config; \
23
23
chmod 755 $(prefix ) /bin/sdl2-config; \
24
- sed " s|^libdir=.*|libdir=\'$( prefix) /lib\'|" < $(arch ) /lib/libSDL2.la > $(prefix ) /lib/libSDL2.la; \
25
- sed " s|^libdir=.*|libdir=\'$( prefix) /lib\'|" < $(arch ) /lib/libSDL2main.la > $(prefix ) /lib/libSDL2main.la; \
26
24
sed " s|^prefix=.*|prefix=$( prefix) |" < $(arch ) /lib/pkgconfig/sdl2.pc > $(prefix ) /lib/pkgconfig/sdl2.pc; \
27
25
else \
28
26
echo " *** ERROR: $( arch) or $( prefix) does not exist!" ; \
You can’t perform that action at this time.
0 commit comments