| #!/usr/bin/env bash | 
 | # Copyright (C) 2017-2020  The Project X-Ray Authors. | 
 | # | 
 | # Use of this source code is governed by a ISC-style | 
 | # license that can be found in the LICENSE file or at | 
 | # https://opensource.org/licenses/ISC | 
 | # | 
 | # SPDX-License-Identifier: ISC | 
 | # Development script to re-run segment generation on specimens | 
 | # Works against most but not all fuzzers | 
 |  | 
 | set -ex | 
 |  | 
 | FUZDIR=$PWD | 
 | pushd build | 
 |  | 
 | for f in $(find -name design.bits |sort) ; do | 
 |      pushd $(dirname $f) | 
 |      python3 $FUZDIR/generate.py | 
 |      popd | 
 | done | 
 | popd | 
 |  | 
 | ${XRAY_SEGMATCH} -o build/tmp.segbits $(find build -name 'segdata_*.txt' |sort) | 
 | cat build/tmp.segbits | 
 |  |