Update of /cvsroot/linux-vax/toolchain/scripts
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv30463
Added Files:
compare_buildlog.sh
Log Message:
- This script compares two build logs (eg. generated with --log-to-file
or by redirecting the script's output into a file). It basically
substitutes the timestamp with some xxxxxxxx-xxxxxx and diffs out the
two resulting files.
--- NEW FILE: compare_buildlog.sh ---
#!/bin/sh
TEMP1FILE="`tempfile`"
TEMP2FILE="`tempfile`"
if [ $# -ne 2 ]; then
echo "$0 buildlog1 buildlog2" >&2
exit 1
fi
cat "$1" | sed -e 's/[[:digit:]]\{8\}-[[:digit:]]\{6\}/xxxxxxxx-xxxxxx/g' > "${TEMP1FILE}"
cat "$2" | sed -e 's/[[:digit:]]\{8\}-[[:digit:]]\{6\}/xxxxxxxx-xxxxxx/g' > "${TEMP2FILE}"
diff -u "${TEMP1FILE}" "${TEMP2FILE}"
rm -f "${TEMP1FILE}" "${TEMP2FILE}"
|