Skip to content

Instantly share code, notes, and snippets.

Created October 18, 2014 14:56
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save anonymous/a3b4db54c4466f350587 to your computer and use it in GitHub Desktop.
Save anonymous/a3b4db54c4466f350587 to your computer and use it in GitHub Desktop.
/home/romster/bin/check-32-versions
#!/bin/bash
PORTS32="`prt-get listinst | grep -- -32$`"
for P in $PORTS32
do
if [ "`prt-get info $P 2>&1`" != "Package '$P' not found" ]
then
PORT="`echo $P | sed 's/-32$//'`"
. $(prt-get path $PORT)/Pkgfile
PV=$version
. $(prt-get path $P)/Pkgfile
PV32=$version
if [ "$PV" != "$PV32" ]
then
echo "$P $PV32 - $PORT $PV"
fi
fi
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment