The Perl Toolchain Summit needs more sponsors. If your company depends on Perl, please support this very important event.
#!/usr/bin/env bash

#****************************************#
# WARNING DO NOT RUN WITH FAILING TESTS  #
#****************************************#
#
# Runs all the tests in t/bin/*.pl and update their output files in t/bin.ok/
# with the output, causing all tests to now pass.
#

TDIR="./t"

for cmd in "$TDIR/bin/"*.pl; do
    name=$(basename $cmd .pl)
    echo Updating $cmd - $name
    $cmd --help > "$TDIR/bin.ok/$name.usage.ok"
    $cmd --man > "$TDIR/bin.ok/$name.man.ok"
done