#!/bin/sh
# This scripts lists versions of packages installed and also available
# at https://slackbuilds.org when they differ.
LANG=C
cd /var/log/packages
for i in $(slapt-src -U -t|sed "s/.*://"); do
	a=$(slapt-src -w $i|grep -e Name|sed "s/.*: //")
	b=$(slapt-src -w $i|grep -e Version|sed "s/.*: //")
	echo "@ slackbuilds.org:" ${a}-${b}
	printf "Installed: "
	echo $i*|sed "s/-x86.*//" 
done
