# This awk program determines which packages didn't find their way from the # opensolaris.org repo to solaris repo. # # It runs on the assumption that the packages are listed in alpha order. If a package in # the opensolaris.org repository isn't found in the solaris repository, the package name# is printed. # BEGIN {flag = 0} # The flag indicates the previous record contained an opensolaris.org package { # If the previous package was an opensolaris.org package and the current package # from the solaris repository doesn't match - print it. if ((flag == 1) && (pkg != $1)) { print pkg; } flag = 0; # Check if the package is from opensolaris.org if ($2 == "(opensolaris.org)") { pkg = $1; # store package name flag = 1; # indicate for the next read that the previous record was opensolaris.org package } }