Skip to content

Instantly share code, notes, and snippets.

@dnaeon
Created March 14, 2012 09:25
Show Gist options
  • Save dnaeon/2035346 to your computer and use it in GitHub Desktop.
Save dnaeon/2035346 to your computer and use it in GitHub Desktop.
fgrep use_pkg $(which portmaster ) <[2595][11:20]]
[ -n "$use_pkgng" ] &&
if [ -z "$use_pkgng" ]; then
if [ -z "$use_pkgng" ]; then
if [ -z "$use_pkgng" ]; then
if [ -z "$use_pkgng" ]; then
if [ -e "$pdb/$1/+IGNOREME" ] && ( [ -z "$use_pkgng" ] || pkg info -e $1 ); then
if [ -z "$use_pkgng" ]; then
if [ -z "$use_pkgng" ]; then
if [ -d "$pdb/$OPTARG" ] && ( [ -z "$use_pkgng" ] || pkg info -e $OPTARG ); then
1) if [ -z "$use_pkgng" ]; then
if [ -n "$use_pkgng" ]; then
if [ -z "$use_pkgng" ]; then
if [ -n "$use_pkgng" ]; then
[ -n "$use_pkgng" ] && return
[ -n "$use_pkgng" ] && return
if [ -e "$pdb/$iport/+IGNOREME" ] && ( [ -z "$use_pkgng" ] || pkg info -e $iport ); then
[ -e "$pdb/$iport/+IGNOREME" ] && ( [ -z "$use_pkgng" ] || pkg info -e $iport ) || return 1
if [ -z "$use_pkgng" ]; then
if [ -z "$use_pkgng" ]; then
[ -n "$use_pkgng" ] && /bin/unlink $grep_deps && unset grep_deps && return
if [ -z "$use_pkgng" ]; then
if [ -z "$use_pkgng" ]; then
[ -n "$use_pkgng" ] && exit 0 # this is useless with pkgng
if [ -z "$use_pkgng" ]; then
if [ -e "$pdb/$iport/+IGNOREME" ] && ( [ -z "$use_pkgng" ] || pkg info -e $iport ); then
if [ -e "$pdb/$iport/+IGNOREME" ] && ( [ -z "$use_pkgng" ] || pkg info -e $iport ); then
if [ -z "$use_pkgng" ]; then
if [ -e "$pdb/$iport/+IGNOREME" ] && ( [ -z "$use_pkgng" ] || pkg info -e $iport ); then
if [ -z "$use_pkgng" ]; then
if [ ! -d "$pdb/$EXPUNGE" ] || ( [ -n "$use_pkgng" ] && ! pkg info -e $EXPUNGE ); then
1) if [ -z "$use_pkgng" ]; then
if [ -z "$use_pkgng" ]; then
0) [ -n "$use_pkgng" ] && exit 1 #TODO
if [ -z "$use_pkgng" ]; then
if [ -z "$use_pkgng" ]; then
if [ -z "$use_pkgng" ]; then
if [ -z "$use_pkgng" ]; then
*) if [ -z "$use_pkgng" ]; then
if [ ! -e "$pdb/${1}/PM_UPGRADE_DONE_FLAG" ] || ( [ -n "$use_pkgng" ] && ! pkg info -e $1 ); then
if [ -e "$pdb/$1/+IGNOREME" ] && ( [ -z "$use_pkgng" ] || pkg info -e $1 ); then
if [ -z "$use_pkgng" ]; then
if [ -z "$use_pkgng" ]; then
if [ -z "$use_pkgng" ]; then
if [ -z "$use_pkgng" ]; then
if [ -z "$use_pkgng" ]; then
if [ -z "$use_pkgng" ]; then
*) if [ -d "$pdb/$port" ] && ( [ -z "$use_pkgng" ] || pkg info -e $port ); then
1) if [ -z "$use_pkgng" ]; then
if [ -z "$use_pkgng" ]; then
$pdb/*) if [ -z "$use_pkgng" ]; then
*) [ -d "$pdb/$argv" ] && ( [ -z "$use_pkgng" ] || pkg info -e $argv ) &&
*) if [ -d "$pdb/$arg2" ] && ( [ -z "$use_pkgng" ] || pkg info -e $arg2 ); then
if [ -z "$use_pkgng" ]; then
if [ -z "$use_pkgng" ]; then
if [ -e "$pdb/$upg_port/+IGNOREME" ] && ( [ -z "$use_pkgng" ] || pkg info -e $upg_port ); then
if [ -z "$use_pkgng" ]; then
if [ -z "$use_pkgng" ]; then
if [ -z "$use_pkgng" ]; then
if [ -z "$use_pkgng" ]; then
if [ -z "$use_pkgng" ]; then
if [ -z "$use_pkgng" -a -n "$use_package" ]; then
if [ -z $use_pkgng ]; then
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment