Add "./build-{example,fuzz}.sh" instructions

This commit is contained in:
Nigel Tao committed 2022-01-19 14:58:40 +11:00
1 parent 418847fe94
commit 48e457204f
2 files changed
+32

No files matched your search

+16
View File
@@ -1,3 +1,5 @@
# Wuffs' Example Programs
This directory contains example programs that use [Wuffs the
Library](/doc/wuffs-the-library.md). See [Hello `wuffs-c`](/hello-wuffs-c) for
an example program that uses [Wuffs the Language](/doc/wuffs-the-language.md)
@@ -8,3 +10,17 @@ not just programming language toys at the "calculate the Fibonacci sequence"
level of triviality. For example, the [example/crc32](/example/crc32/crc32.cc)
and [example/zcat](/example/zcat/zcat.c) programs are roughly equivalent to
Debian Linux's `/usr/bin/crc32` and `/bin/zcat` programs.
## Building
Running `build-example.sh` from the top level directory will build all of the
examples. To check out and build just one, such as `jsonptr`:
git clone https://github.com/google/wuffs.git
cd wuffs
./build-example.sh example/jsonptr
When re-building, you only need the last of those three lines. To run it:
gen/bin/example-jsonptr test/data/json-things.unformatted.json