Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added Automake and Libtool #12

Open
wants to merge 103 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
103 commits
Select commit Hold shift + click to select a range
078639d
Added Autoconf
Sep 27, 2016
e72d655
Added one more file to CLEANFILES in test/Makefile.am
Oct 29, 2016
33955bc
Restructurizing build system
Oct 29, 2016
2ca3ae7
Modified headers
Oct 29, 2016
e01aad2
Restructurized build system and reindented source files
Oct 29, 2016
23f8271
Made asprintf possible with more systems
Oct 29, 2016
f4f791c
Moved more to Autoconf, removed _FILE_OFFSET_BITS in favor of AC_SYS_…
Oct 29, 2016
d87c313
Re-indented
Oct 29, 2016
827ae55
Added vimrc with indentation rules
Oct 29, 2016
0a8c942
Improved lvimrc
Oct 29, 2016
ddcfe5a
Formatted changelog
Oct 29, 2016
c2245d3
Re-formatted source files
Oct 29, 2016
5c76aa9
Gettextized
Nov 11, 2016
6a73aff
Merge branch 'master' of github.com:KubaKaszycki/xar
Nov 11, 2016
748a00e
Added Makevars
Nov 11, 2016
ee6cc9b
Worked around a keyword usage, which rendered a file uncompillable
Nov 11, 2016
6a3e381
Moved m4 to root directory, autoconfizing
Nov 11, 2016
a89914c
Moved build-aux to topdir
Nov 11, 2016
2bdb1c4
Autoconf-ized tools
Nov 11, 2016
58daea9
Autoconfized python binding
Nov 11, 2016
da1b1ce
Autoconfized XarKit; still needs fixes
Nov 11, 2016
77f9dff
Added two files to xar/po/.gitignore
Nov 11, 2016
7247e65
Made configuration of python/ work
Nov 12, 2016
6658498
Some improvements in python/Makefile.am related to user provided vari…
Nov 12, 2016
122106f
XarKit - made it build with Autoconf :)
Nov 12, 2016
014d9f3
Fixes in python/Makefile.am
Nov 12, 2016
971fdd8
Removed a bug which caused deletion of setup.py and xarfile.pyx (most
Nov 12, 2016
5044235
Removed a bug which caused XarKit.framework not to be cleaned
Nov 12, 2016
a12c61e
Changed xar/configure.ac from xar to xar-core (xar is now the root pa…
Nov 12, 2016
3a35f66
Fixed version in python/configure.ac
Nov 12, 2016
b6246ce
Fixed version in XarKit/configure.ac
Nov 12, 2016
61b7aa6
Fixed gitignores and configuration, added root Autoconf
Nov 12, 2016
e737a94
Initiated translation - first file is going to be src/xar.c
Nov 12, 2016
5681aa0
Translated xar.c up to line 1944
Nov 12, 2016
df99d0e
Made compilation possible without Python/Pyrex
Nov 12, 2016
1d46f2f
Translated all messages in xar.c
Nov 12, 2016
28e5644
Updated xar/po/.gitignore
Nov 12, 2016
9f66e18
Added languages to xar/po/LINGUAS
Nov 12, 2016
cb35aac
Added Polish translation
Nov 12, 2016
c192d6c
Changes to metadata in pl.po
Nov 12, 2016
8f04777
Finished translation loading
Nov 12, 2016
65dbb5c
Fixed "xar" to "xar-core" in xar/lib/intl.c
Nov 12, 2016
e02aab2
Updated pl.po using msgmerge
Nov 12, 2016
bce2345
Fixed localization (NOW WORKS!!!)
Nov 12, 2016
8fec0e2
Fixed installation rule in Makefile.am in XarKit
Nov 12, 2016
04880a1
Changed dependency on GNUstep/Objc from REQUIRED to OPTIONAL
Nov 12, 2016
f6bd872
More Polish translations
Nov 13, 2016
7bfd783
Changed xar.c/replace_sign, so that instead of running cp using syste…
Nov 13, 2016
d8887e3
Fixed padding in AppleSingleHeader
Nov 13, 2016
50da09f
Fixed include in xar/tests
Nov 13, 2016
43b92a6
Re-indented source files
Nov 13, 2016
c3ddc26
Fixed headers in tools/strextract.c
Nov 13, 2016
fdce230
Worked on tools/toc_extract.c
Nov 13, 2016
48de178
Many improvements to AppleSingle/AppleDouble support
Dec 8, 2016
a6f1710
Added Doxygen generated docs
Dec 8, 2016
d5b1eee
Increased one value in Doxyfile to prevent graphs from not being created
Dec 8, 2016
a9b6163
Next fix in Doxyfile - file name related
Dec 8, 2016
2e1a6be
Macro expansion related documentation improvements
Dec 8, 2016
54336ee
Added object files to xar/test/.gitignore
Dec 8, 2016
7405a72
Added some test results to xar/test/.gitignore
Dec 8, 2016
bf2c3f3
File name improvements in documentation
Dec 8, 2016
485c8e8
Improvements to tools/strextract.c
Dec 8, 2016
ee7a8e9
Improved error messages in tools/xar-strextract
Dec 8, 2016
1bd833f
Bump version to 1.7.0
Dec 8, 2016
43f8bf8
Some README related modifications
Dec 8, 2016
4207710
Test related improvements
Dec 9, 2016
e0da6d0
Made Doxygen work by default
Dec 9, 2016
84d72d5
Moved documentation to top-level
Dec 9, 2016
65ded2a
Prevented full paths from being displayed in include hierarchies
Dec 9, 2016
e0048a3
Documented xar/include/xar/appledouble.h
Dec 9, 2016
9e0a21d
Added some documentation in <xar/archive.h>
Dec 9, 2016
caa76b6
Removed all relative #includes in xar/include/xar
Dec 9, 2016
77c952d
Starting to create the Exposed API
Dec 9, 2016
287d668
Removed XarKit from gitignore
Dec 9, 2016
602c150
Added .d files created by GNUStep to XarKit/.gitignore
Dec 9, 2016
1a7887a
Ignoring tags files, created by make tags
Dec 9, 2016
3c6c046
Added other tag types
Dec 9, 2016
9787f19
PREPARING FOR RELEASE 2.0! Warning: this commit makes incompatible ch…
Dec 9, 2016
5ab3649
Release 2.0
Dec 9, 2016
dfdb68d
Made tests run
Dec 9, 2016
560e881
Fixed Python binding build
Dec 9, 2016
ae1a042
Added maintainer utilities
Dec 9, 2016
3a55bd4
Fixed maint/alldists.sh
Dec 9, 2016
1f66c10
Fixed xar/include/Makefile.am, which installed header files improperly
Dec 10, 2016
8a96701
Renamed __xar_t to xar_archive, xar_t to xar_archive_t, kept xar_t as…
Dec 10, 2016
a6e9d01
Renamed xar_t to xar_archive_t in xar/ source files (but kept the old…
Dec 10, 2016
683cbbb
Moved xar_iter_t to <xar/xar.h> completely
Dec 10, 2016
593fedc
Re-indented source files
Dec 10, 2016
aa339a8
Re-indented tools/ source files
Dec 10, 2016
76128a9
We were using too much limit in Doxygen, and it fell down to default
Dec 10, 2016
f22c854
Fixed a typo: @See -> @see
Dec 10, 2016
bb1d2ef
Fully replaced xar_header_ex_t and xar_header_t with alternatives wit…
Dec 10, 2016
bf3c9bc
Added config.h, <xar/xar.h> is no longer regenerated on each configure
Dec 10, 2016
a0aa40b
Fixed some things in <xar/config.h>
Dec 10, 2016
d396b97
More documentation
Dec 10, 2016
649b026
Fixed warnings in xar/lib/stat.c
Dec 10, 2016
53a859e
Working on XarKit, very hard
Dec 10, 2016
7be504d
Re-indented source files
Dec 10, 2016
69cd5f2
Made xar/lib/ext2.c check whether a deprecated macro is present
Dec 10, 2016
aca647f
Put casts to prevent warnings in xar/lib/ext2.c
Dec 10, 2016
6705648
Fixed linking against libACL.
Dec 10, 2016
8b33b5e
Re-indenting XarKit
Dec 10, 2016
b365aff
Merge branch 'master' of github.com:KubaKaszycki/xar
Dec 10, 2016
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
62 changes: 27 additions & 35 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,35 +1,27 @@
*.o
*.d
*.pyc
/XarCMPlugIn/build/
/XarCMPlugIn/XarCMPlugin.xcodeproj/*
!/XarCMPlugIn/XarCMPlugin.xcodeproj/project.pbxproj
/XarKit/build/
/XarKit/XarKit.xcodeproj/*
!/XarKit/XarKit.xcodeproj/project.pbxproj
/xarmdimport/build/
/xarmdimport/xar.xcodeproj/*
!/xarmdimport/xar.xcodeproj/project.pbxproj
/xarql/build/
/xarql/xar.xcodeproj/*
!/xarql/xar.xcodeproj/project.pbxproj
/xar/autom4te.cache/
/xar/configure
/xar/Makefile
/xar/cfghdrs.stamp
/xar/cfgoutputs.stamp
/xar/config.log
/xar/config.status
/xar/include/config.h
/xar/include/xar.h
/xar/lib/Makefile.inc
/xar/lib/libxar.la.in
/xar/src/Makefile.inc
/xar/xar.spec
/xar/lib/.libs/
/xar/lib/*.dylib
/xar/lib/*.so*
/xar/lib/*.a
/xar/lib/*.la
/xar/src/ixar
/xar/src/xar
/Makefile
/Makefile.in
/aclocal.m4
/libtool
/config.h
/config.h.in
/config.h.in~
/config.log
/config.status
/configure
/stamp-h1
/xar-strextract
/xar-toc_extract
/autom4te.cache
/.deps
/.libs
/*.la
/*.lo
/*.o
/config.cache
tags
TAGS
GPATH
GRTAGS
GSYMS
GTAGS
ID
3 changes: 3 additions & 0 deletions .gitmodules
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
[submodule "m4/autoconf-archive"]
path = m4/autoconf-archive
url = git://git.savannah.gnu.org/autoconf-archive.git
7 changes: 7 additions & 0 deletions .lvimrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
setlocal cindent
setlocal cinoptions=>4,n-2,{2,^-2,:2,=2,g0,h2,p5,t0,+2,(0,u0,w1,m1
setlocal shiftwidth=2
setlocal softtabstop=2
setlocal textwidth=79
setlocal fo-=ro fo+=cql
setlocal expandtab
14 changes: 14 additions & 0 deletions Makefile.am
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
SUBDIRS = \
xar \
tools \
python \
XarKit \
doc

DIST_SUBDIRS = \
$(SUBDIRS) \
m4

ACLOCAL_AMFLAGS = -I m4

EXTRA_DIST = build-aux/config.rpath
112 changes: 112 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,112 @@
# eXtensible ARchiver

A fork/clone of the subversion xar repository that includes several enhancements
and bug fixes including very basic command line signature support.

The project page with extensive documentation on signing, pre-bootstrapped
downloads, etc. can be found at:

<https://github.com/KubaKaszycki/xar/>

## Enhancements

See the [xar/NEWS](xar/NEWS) file for release notes and the
[xar/ChangeLog](xar/ChangeLog) file for a more detailed list.

Notable enhancements are command line signature support, `--strip-components` and
`--to-stdout` support, cygwin build support, support for arbitrary checksum
message digests (e.g. sha256, sha512), improved liblzma compatibility, many
new command synonyms, and lots and lots of bug fixes and warning eliminations.

See the xar/NEWS and/or xar/ChangeLog file for the full list.

## Source Directories

<table>
<tr>
<th>xar</th>
<td>Primary source directory, contains libxar sources and xar sources.</td>
</tr>
<tr>
<th>XarCMPlugin</th>
<td>OS X xar contextual menu plugin with Xcode project. Not integrated into
Autotools build system. May be out of date.</td>
</tr>
<tr>
<th>XarKit</th>
<td>OS X xar framework Xcode project. May be incomplete.</td>
</tr>
<tr>
<th>xarmdimport</th>
<td>OS X xar SpotLight plugin with Xcode project. Not integrated into
Autotools build system. May not be release quality.</td>
</tr>
<tr>
<th>xarql</th>
<td>OS X xar QuickLook plugin with Xcode project. Not integrated into
Autotools build system. May not be release quality.</td>
</tr>
<tr>
<th>tools</th>
<td>Some xar archive tool sources and man pages. They are not very useful.
Some may be very out of date or even uncompilable.</td>
</tr>
<tr>
<th>python</th>
<td>The pyxar Python bindings for xar. May be incomplete.</td>
</tr>
</table>

## License

See the xar/LICENSE file. This is a "New BSD License" aka a
"Modified BSD license" or a "3-clause BSD license".
See the xar/LICENSE file for details.

## Building

First, if bootstraping from freshly cloned repository, generate the build
system.

```shell
git submodule update --init
./autogen.sh
```

Then, configure it:

```shell
./configure
```

Run it with `--help` argument to view possible arguments for it.

Now, build it:

```shell
make
```

It tries to be as portable as possible, but GNU Make is recommended.

You should check whether you didn't compile faulty release. Run:

```shell
make check
```

to run the test-suites.

It's time for installation. Type:

```shell
sudo make install
```

To put it in system directories (it even install macOS/GNUStep frameworks).

Pre-bootstrapped xar release tarballs (i.e. with configure already generated)
and pre-built binaries can be found in the downloads section of the project
page at:

<https://github.com/KubaKaszycki/xar/releases/>
76 changes: 0 additions & 76 deletions README.txt

This file was deleted.

22 changes: 22 additions & 0 deletions XarKit/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
/Makefile
/Makefile.in
/aclocal.m4
/libtool
/config.h
/config.h.in
/config.h.in~
/config.log
/config.status
/configure
/stamp-h1
/xar-strextract
/xar-toc_extract
/autom4te.cache
/.deps
/.libs
/*.la
/XarKit
/XarKit.framework
/*.lo
/*.o
/*.d
70 changes: 70 additions & 0 deletions XarKit/Makefile.am
Original file line number Diff line number Diff line change
@@ -0,0 +1,70 @@
if HAVE_GNUSTEP
lib_LTLIBRARIES = libXarKit.la
libXarKit_la_SOURCES = \
XarArchive.m \
XarBase.m \
XarEnumerator.m \
XarFile.m \
XarSubdoc.m

libXarKit_la_LIBADD = \
../xar/lib/libxar.la \
$(ZLIB_LIBS) \
$(LIBLZMA_LIBS) \
$(OPENSSL_LIBS) \
-lbz2

xincludedir = $(includedir)/XarKit
xinclude_HEADERS = \
XarArchive.h \
XarBase.h \
XarEnumerator.h \
XarFile.h \
XarKit.h \
XarSubdoc.h

mostlyclean-hook:
rm -rf XarKit.framework

XarKit.framework: libXarKit.la $(srcdir)/Info.plist $(ac_aux_dir)/mkframework \
$(xinclude_HEADERS)
$(AM_V_GEN)MKDIR_P='$(MKDIR_P)' LN_S='$(LN_S)' \
$(SHELL) $(ac_aux_dir)/mkframework $(SHREXT) $(srcdir)/Info.plist \
XarKit "$(PACKAGE_VERSION)" "$(libdir)" "$(xinclude_HEADERS)" \
"$(xincludedir)"

install-exec-hook: XarKit.framework
$(INSTALL) -d $(libdir)/GNUstep/Frameworks && \
cp -r $< $(libdir)/GNUstep/Frameworks
$(INSTALL) -d $(exec_prefix)/Library/Frameworks && \
cp -r $< $(exec_prefix)/Library/Frameworks

uninstall-hook:
rm -rf $(libdir)/GNUstep/Frameworks/XarKit \
$(exec_prefix)/Library/Frameworks/XarKit

all-am: XarKit.framework
mostlyclean-local: mostlyclean-hook
@:

AM_OBJCFLAGS = $(shell $(GNUSTEP_CONFIG) --objc-flags)

EXTRA_DIST = Info.plist

SHREXT = $(shell $(LIBTOOL) --config > __temp && . __temp && rm -f __temp && echo $$shrext_cmds)
endif

ACLOCAL_AMFLAGS = -I ../m4

AM_LDFLAGS = \
-L$(BZLIB_HOME)/lib \
"$(shell $(GNUSTEP_CONFIG) --base-libs)"

AM_CPPFLAGS = \
$(LIBXML2_CFLAGS) \
-I../xar/include \
-I$(srcdir)/../xar.include \
$(ZLIB_CFLAGS) \
$(LIBLZMA_CFLAGS) \
-I$(BZLIB_HOME)/include \
$(OPENSSL_CFLAGS)
6 changes: 3 additions & 3 deletions XarKit/XarArchive.h
Original file line number Diff line number Diff line change
Expand Up @@ -11,16 +11,16 @@ extern NSString *XarErrorErrno;

@interface XarArchive : NSObject
{
xar_t xar;
NSMutableArray *errors;
xar_archive_t xar;
NSMutableArray *errors;
}

+ (id)archiveForReadingAtPath:(NSString *)path;
+ (id)archiveForWritingAtPath:(NSString *)path;

- (void)closeArchive;

- (xar_t)xar;
- (xar_archive_t)xar;

- (NSEnumerator *)fileEnumerator;

Expand Down
Loading