/usr/sbin/sauce9-convert is in sauce 0.9.0+nmu3.
This file is owned by root:root, with mode 0o755.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 | #!/bin/sh
set -e
fail () { echo >&2 "$*"; exit 16; }
if [ "$#" != 1 ]; then
fail 'usage: sauce9-convert <directory>'
fi
echo "Checking for SAUCE databases in $1 ..."
cd "$1"
umask 022
rm -f tmp-cdb.*
for db in site-annoy site-seen site-list \
addr-seen addr-list
do
printf " %s " "cdb.$db"
todelete=`find . -maxdepth 1 \
\( -name 'db.*.*' -o -name 'cdb.*' \) \
-mtime +28 -type f -print`
if [ "x$todelete" != x ]; then
echo -n "("deleting stale $todelete") "
rm -- $todelete
fi
if test -f cdb.$db.main; then
echo " new database exists, not converting."
continue
fi
inputs=`find . -maxdepth 1 \
\( -name "db.$db.main" -o -name "db.$db.log" \) \
-print`
if [ "x$inputs" != x ]; then
echo -n "("reading $inputs") "
else
printf "(no existing data) "
fi
${SAUCE_CONVERTDB:-/usr/share/sauce/convertdb} \
tmp-cdb.$db 0 $inputs >/dev/null
printf " done"
for g in lock main jrn cdb; do
chown mail.mail tmp-cdb.$db.$g
mv -f tmp-cdb.$db.$g cdb.$db.$g
done
echo .
done
|