21 lines
396 B
Plaintext
Raw Normal View History

2013-03-05 02:47:04 -06:00
#!/bin/bash
2013-07-28 14:29:07 -05:00
term="$1"
dir=$(dirname $(readlink -f "$0"))
cd "$dir/.."
if test -z "$term"; then
term="$dir/../usr/xterm"
set -- "$term" "$@"
fi
node test/tput.js "$@" | grep -v 'dir:\|file:' | tee test/logs/terminfo.log
out=$(git diff --color=always --no-index test/terminfo test/logs/terminfo.log)
2013-03-06 04:10:13 -06:00
if test -n "$out"; then
echo "$out" | less -c -R
else
echo 'Files are identical.'
fi