Commit afbf151
committed
Fix how seeding process deals with release artefacts.
There are several problems with the way the seeding process (1) copies
the release artefacts from the src/ontology directory to the top-level
release directory and (2) optionally commits those files.
For (1), the problem is that the seeding script manually copies the
files itself, and do so by assuming too many things about those files.
Notably, it assumes they all go straight to the top-level directory,
whereas some should actually go a subdirectory (for example, report
files, when they are released, go into $(RELEASEDIR)/reports, not into
$(RELEASEDIR) directly; so do subset files).
The problem with (2) is a consequence of (1): if not all release files
have been correctly copied to their correct expected location in the
top-level directory, then the seeding script will try to `git add` files
that may not actually exist.
We fix (1) by adding a new helper target, `copy_release_files`, to take
care of copying all release files to the release directory. It is called
internally by the `prepare_release` target, and also by the seeding
script. This ensures that the same logic to copy release files will
always be used.
Wr fix (2) by updating the `show_release_assets` target (whose sole
real purpose is to be used by the seeding script) to list the _actual_
release files: that is, the files that are in the release directory,
rather than the files under src/.1 parent 787a8ac commit afbf151
2 files changed
Lines changed: 37 additions & 14 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1464 | 1464 | | |
1465 | 1465 | | |
1466 | 1466 | | |
1467 | | - | |
| 1467 | + | |
1468 | 1468 | | |
1469 | 1469 | | |
1470 | 1470 | | |
1471 | | - | |
| 1471 | + | |
1472 | 1472 | | |
1473 | 1473 | | |
1474 | 1474 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
394 | 394 | | |
395 | 395 | | |
396 | 396 | | |
| 397 | + | |
| 398 | + | |
| 399 | + | |
| 400 | + | |
| 401 | + | |
| 402 | + | |
| 403 | + | |
| 404 | + | |
| 405 | + | |
397 | 406 | | |
398 | 407 | | |
399 | 408 | | |
| |||
407 | 416 | | |
408 | 417 | | |
409 | 418 | | |
410 | | - | |
411 | | - | |
412 | | - | |
413 | | - | |
414 | 419 | | |
415 | 420 | | |
416 | 421 | | |
| |||
426 | 431 | | |
427 | 432 | | |
428 | 433 | | |
| 434 | + | |
429 | 435 | | |
430 | 436 | | |
431 | | - | |
432 | 437 | | |
433 | | - | |
434 | | - | |
435 | | - | |
436 | | - | |
437 | | - | |
438 | | - | |
| 438 | + | |
| 439 | + | |
| 440 | + | |
439 | 441 | | |
440 | 442 | | |
441 | 443 | | |
442 | 444 | | |
443 | 445 | | |
444 | 446 | | |
| 447 | + | |
| 448 | + | |
| 449 | + | |
| 450 | + | |
| 451 | + | |
| 452 | + | |
| 453 | + | |
| 454 | + | |
| 455 | + | |
| 456 | + | |
| 457 | + | |
| 458 | + | |
| 459 | + | |
| 460 | + | |
| 461 | + | |
| 462 | + | |
| 463 | + | |
| 464 | + | |
| 465 | + | |
| 466 | + | |
| 467 | + | |
| 468 | + | |
445 | 469 | | |
446 | 470 | | |
447 | 471 | | |
| |||
1493 | 1517 | | |
1494 | 1518 | | |
1495 | 1519 | | |
1496 | | - | |
1497 | 1520 | | |
1498 | 1521 | | |
1499 | 1522 | | |
| |||
0 commit comments