mirror of
https://github.com/stedolan/jq.git
synced 2024-05-11 05:55:39 +00:00
Update download page and build system to handle more platforms.
This commit is contained in:
10
Makefile
10
Makefile
@ -90,3 +90,13 @@ uninstall:
|
|||||||
rm -vf $(prefix)/bin/jq
|
rm -vf $(prefix)/bin/jq
|
||||||
rm -vf $(mandir)/man1/jq.1
|
rm -vf $(mandir)/man1/jq.1
|
||||||
|
|
||||||
|
|
||||||
|
www: docs/output www_binaries
|
||||||
|
|
||||||
|
docs/output:
|
||||||
|
cd docs; rake build
|
||||||
|
|
||||||
|
www_binaries: docs/output binaries
|
||||||
|
$(foreach platform, $(PLATFORMS), $(foreach binary, $(BINARIES), \
|
||||||
|
mkdir -p docs/output/download/$(platform); \
|
||||||
|
cp build/$(platform)/$(binary) docs/output/download/$(platform)/$(binary); ))
|
||||||
|
@ -5,39 +5,46 @@ body:
|
|||||||
|
|
||||||
jq is written in C and has no runtime dependencies, so it should be
|
jq is written in C and has no runtime dependencies, so it should be
|
||||||
possible to build it for nearly any platform. Prebuilt binaries are
|
possible to build it for nearly any platform. Prebuilt binaries are
|
||||||
available for Linux (64-bit x86) and OS X.
|
available for Linux, OS X and Windows.
|
||||||
|
|
||||||
* [Download binary for 64-bit Linux](linux_x86_64/jq)
|
|
||||||
* [Download binary for OS X](osx_64/jq)
|
|
||||||
(or use [homebrew](http://mxcl.github.com/homebrew/): `brew install jq`)
|
|
||||||
* [Download source](source/jq.tgz)
|
|
||||||
|
|
||||||
The binaries should just run, but you may need to make them
|
The binaries should just run, but on OS X and Linux you may need
|
||||||
executable first using:
|
to make them executable first using `chmod +x jq`.
|
||||||
|
|
||||||
chmod +x jq
|
|
||||||
|
|
||||||
jq is licensed under the MIT license. For all of the gory
|
jq is licensed under the MIT license. For all of the gory
|
||||||
details, read the file `COPYING` in the source distribution.
|
details, read the file `COPYING` in the source distribution.
|
||||||
|
|
||||||
Arch Linux
|
|
||||||
----------
|
|
||||||
|
|
||||||
A PKGBUILD for jq-1.1 is in the
|
### Linux
|
||||||
[AUR](https://aur.archlinux.org/packages.php?ID=63849), as well as a
|
|
||||||
PKGBUILD for the HEAD of master
|
* Binaries for [64-bit](linux64/jq) or [32-bit](linux32/jq) systems.
|
||||||
([jq-git](https://aur.archlinux.org/packages.php?ID=63850)).
|
|
||||||
|
|
||||||
You can install jq using [Yaourt](https://wiki.archlinux.org/index.php/Yaourt)
|
* For Arch users, a PKGBUILD for jq-1.1 is in the
|
||||||
or manually by following instructions on
|
[AUR](https://aur.archlinux.org/packages.php?ID=63849), as
|
||||||
[Arch Linux's Wiki](https://wiki.archlinux.org/index.php/Arch_User_Repository).
|
well as a PKGBUILD for the HEAD of master
|
||||||
|
([jq-git](https://aur.archlinux.org/packages.php?ID=63850)).
|
||||||
|
You can install them using
|
||||||
|
[Yaourt](https://wiki.archlinux.org/index.php/Yaourt) or
|
||||||
|
manually by following instructions on [Arch Linux's
|
||||||
|
Wiki](https://wiki.archlinux.org/index.php/Arch_UseRepository).
|
||||||
|
|
||||||
Hacking on jq
|
* Debian/Ubuntu packages are coming Real Soon Now.
|
||||||
=============
|
|
||||||
|
|
||||||
If you want to work on jq, grab the source from
|
### OS X
|
||||||
[https://github.com/stedolan/jq](https://github.com/stedolan/jq).
|
|
||||||
|
* `brew install jq` using [homebrew](http://mxcl.github.com/homebrew/)
|
||||||
|
|
||||||
|
* Or, grab prebuilt [64-bit binaries](osx64/jq) or [32-bit
|
||||||
|
binaries](osx32/jq)
|
||||||
|
|
||||||
|
### Windows
|
||||||
|
|
||||||
|
* Executables for [64-bit](win64/jq) or [32-bit](win32/jq)
|
||||||
|
|
||||||
|
### From source on Linux or OS X
|
||||||
|
|
||||||
|
git clone https://github.com/stedolan/jq.git
|
||||||
|
cd jq
|
||||||
|
make && sudo make install
|
||||||
|
|
||||||
To build it from a git clone, you'll need to install a few
|
To build it from a git clone, you'll need to install a few
|
||||||
packages first:
|
packages first:
|
||||||
@ -48,11 +55,6 @@ body:
|
|||||||
* [GCC](http://gcc.gnu.org)
|
* [GCC](http://gcc.gnu.org)
|
||||||
* [Make](http://www.gnu.org/software/make)
|
* [Make](http://www.gnu.org/software/make)
|
||||||
|
|
||||||
Most of these aren't necessary if you're just trying to compile
|
|
||||||
jq from the released tarball - that version has the
|
|
||||||
non-platform-specific build steps already done, so you'll only
|
|
||||||
need a C compiler and `make` to finish it off.
|
|
||||||
|
|
||||||
For Linux systems, these will all be in your system's package
|
For Linux systems, these will all be in your system's package
|
||||||
manager, and if you do development on the machine they're most
|
manager, and if you do development on the machine they're most
|
||||||
likely already installed.
|
likely already installed.
|
||||||
@ -67,9 +69,10 @@ body:
|
|||||||
jq, and some python scripts generate the UTF8 encoding tables
|
jq, and some python scripts generate the UTF8 encoding tables
|
||||||
needed for JSON parsing.
|
needed for JSON parsing.
|
||||||
|
|
||||||
Building the documentation
|
#### Building the documentation
|
||||||
--
|
|
||||||
|
|
||||||
jq's documentation is compiled into static HTML using
|
jq's documentation is compiled into static HTML using
|
||||||
[Bonsai](http://www.tinytree.info). To view the documentation
|
[Bonsai](http://www.tinytree.info). To view the documentation
|
||||||
locally, run `rake serve` from the docs/ subdirectory.
|
locally, run `rake serve` from the docs/ subdirectory.
|
||||||
|
|
||||||
|
|
||||||
|
Binary file not shown.
Binary file not shown.
4
docs/templates/index.liquid
vendored
4
docs/templates/index.liquid
vendored
@ -16,8 +16,8 @@
|
|||||||
<span class="caret"></span>
|
<span class="caret"></span>
|
||||||
</a>
|
</a>
|
||||||
<ul class="dropdown-menu">
|
<ul class="dropdown-menu">
|
||||||
<li><a href="{{root}}/download/linux_x86_64/jq">Linux (x86_64)</a></li>
|
<li><a href="{{root}}/download/linux64/jq">Linux (64-bit)</a></li>
|
||||||
<li><a href="{{root}}/download/osx_64/jq">OS X (64-bit)</a></li>
|
<li><a href="{{root}}/download/osx64/jq">OS X (64-bit)</a></li>
|
||||||
<li><a href="{{root}}/download">Other platforms and source</a></li>
|
<li><a href="{{root}}/download">Other platforms and source</a></li>
|
||||||
</ul>
|
</ul>
|
||||||
</div>
|
</div>
|
||||||
|
Reference in New Issue
Block a user