Overview
Comment: | ofarc: Add support for Zoo archives |
---|---|
Downloads: | Tarball | ZIP archive | SQL archive |
Timelines: | family | ancestors | descendants | both | trunk |
Files: | files | file ages | folders |
SHA3-256: |
aaf991863afd5ad1e8a8dfa3480047a0 |
User & Date: | js on 2024-02-28 20:13:53 |
Other Links: | manifest | tags |
Context
2024-02-28
| ||
20:27 | OFZooArchive: Throw exception for mode `w` / `a` check-in: a22b485eaf user: js tags: trunk | |
20:13 | ofarc: Add support for Zoo archives check-in: aaf991863a user: js tags: trunk | |
00:41 | Fix missing import check-in: 4f9e27d416 user: js tags: trunk | |
Changes
Modified utils/ofarc/Makefile from [75fcfbcaa1] to [9ffce288e6].
1 2 3 4 5 6 7 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 | - + + | include ../../extra.mk PROG = ofarc${PROG_SUFFIX} SRCS = GZIPArchive.m \ LHAArchive.m \ OFArc.m \ TarArchive.m \ |
︙ |
Modified utils/ofarc/OFArc.m from [e196e4c527] to [b277cdf39b].
︙ | |||
28 29 30 31 32 33 34 35 36 37 38 39 40 41 | 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 | + | #import "OFStdIOStream.h" #import "OFArc.h" #import "GZIPArchive.h" #import "LHAArchive.h" #import "TarArchive.h" #import "ZIPArchive.h" #import "ZooArchive.h" #import "OFCreateDirectoryFailedException.h" #import "OFInvalidArgumentException.h" #import "OFInvalidFormatException.h" #import "OFNotImplementedException.h" #import "OFOpenItemFailedException.h" #import "OFReadFailedException.h" |
︙ | |||
57 58 59 60 61 62 63 | 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 | - - + + - + | [stream writeString: @"\n"]; [stream writeLine: OF_LOCALIZED(@"full_usage", @"Options:\n" @" -a --append Append to archive\n" @" -c --create Create archive\n" @" -C --directory= Extract into the specified " @"directory\n" |
︙ | |||
552 553 554 555 556 557 558 559 | 553 554 555 556 557 558 559 560 561 562 563 564 565 566 567 568 569 570 571 572 573 574 575 576 577 578 579 580 581 582 583 | + + - - + + - + - - - + + + + - + + + | @"file", e.path, @"error", error)]; [OFApplication terminateWithStatus: 1]; } } if (type == nil || [type isEqual: @"auto"]) { OFString *lowercasePath = path.lowercaseString; /* This one has to be first for obvious reasons */ |
︙ | |||
595 596 597 598 599 600 601 602 603 604 605 606 607 608 | 601 602 603 604 605 606 607 608 609 610 611 612 613 614 615 616 617 618 619 | + + + + + | archive = [TarArchive archiveWithPath: path stream: GZIPStream mode: modeString encoding: encoding]; } else if ([type isEqual: @"zip"]) archive = [ZIPArchive archiveWithPath: path stream: file mode: modeString encoding: encoding]; else if ([type isEqual: @"zoo"]) archive = [ZooArchive archiveWithPath: path stream: file mode: modeString encoding: encoding]; else { [OFStdErr writeLine: OF_LOCALIZED( @"unknown_archive_type", @"Unknown archive type: %[type]", @"type", type)]; |
︙ |
Added utils/ofarc/ZooArchive.h version [934a7d265c].
|
Added utils/ofarc/ZooArchive.m version [f7ecaea67e].