Overview
| Comment: | OFZIP: Add support for tar and tar.gz files |
|---|---|
| Downloads: | Tarball | ZIP archive | SQL archive |
| Timelines: | family | ancestors | descendants | both | trunk |
| Files: | files | file ages | folders |
| SHA3-256: |
8dee4cac41873d5305f46eb18e1fc2f5 |
| User & Date: | js on 2016-05-22 21:02:57 |
| Other Links: | manifest | tags |
Context
|
2016-05-22
| ||
| 21:14 | OFTarArchive.h: Fix a typo (check-in: 804809a28e user: js tags: trunk) | |
| 21:02 | OFZIP: Add support for tar and tar.gz files (check-in: 8dee4cac41 user: js tags: trunk) | |
| 20:14 | OFTarArchiveEntry: Rename name to fileName (check-in: b10933a514 user: js tags: trunk) | |
Changes
Modified utils/ofzip/Archive.h from [9e6c49c585] to [900d834d42].
| ︙ | |||
15 16 17 18 19 20 21 | 15 16 17 18 19 20 21 22 23 24 25 26 27 | - - + + | */ #import "OFObject.h" #import "OFFile.h" #import "OFArray.h" @protocol Archive <OFObject> |
Modified utils/ofzip/GZIPArchive.m from [bc8629617c] to [d0b4b1bf2e].
| ︙ | |||
43 44 45 46 47 48 49 | 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 | - + - + - + - + |
@implementation GZIPArchive
+ (void)initialize
{
if (self == [GZIPArchive class])
app = [[OFApplication sharedApplication] delegate];
}
|
| ︙ |
Modified utils/ofzip/Makefile from [115d091be2] to [46bd4340de].
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 | + |
include ../../extra.mk
PROG = ofzip${PROG_SUFFIX}
SRCS = GZIPArchive.m \
OFZIP.m \
TarArchive.m \
ZIPArchive.m
include ../../buildsys.mk
${PROG}: ${LIBOBJFW_DEP_LVL2}
CPPFLAGS += -I../../src -I../../src/runtime -I../../src/exceptions -I../..
LIBS := -L../../src -lobjfw ${LIBS}
LD = ${OBJC}
LDFLAGS += ${LDFLAGS_RPATH}
|
Modified utils/ofzip/OFZIP.m from [3d1c32bca2] to [45c0a2620e].
| ︙ | |||
22 23 24 25 26 27 28 | 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 | - - + + + | #import "OFArray.h" #import "OFFile.h" #import "OFFileManager.h" #import "OFOptionsParser.h" #import "OFStdIOStream.h" #import "OFZIP.h" |
| ︙ | |||
238 239 240 241 242 243 244 | 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 | + + + + + - - + + + + - + |
} @catch (OFOpenItemFailedException *e) {
[of_stderr writeFormat: @"Failed to open file %@: %s\n",
[e path], strerror([e errNo])];
[OFApplication terminateWithStatus: 1];
}
@try {
/* This one has to be first for obvious reasons */
if ([path hasSuffix: @".tar.gz"] || [path hasSuffix: @".tgz"] ||
[path hasSuffix: @".TAR.GZ"] || [path hasSuffix: @".TGZ"])
archive = [TarArchive archiveWithStream:
[OFGZIPStream streamWithStream: file]];
|
| ︙ |
Added utils/ofzip/TarArchive.h version [c907133818].
|
Added utils/ofzip/TarArchive.m version [5eeadf9d58].