View Single Post
  #4   (View Single Post)  
Old 21st October 2013
jb_daefo jb_daefo is offline
Spam Deminer
 
Join Date: May 2008
Posts: 303
Default

Not to change the topic too much, but this post is similar.

I wanted a way to check if the ports that weren't building here, yet, were packages upstream. Yesterday I found an older perl script onhand that I used just a part of. Still very beta in the first usage (below) vs the second.
I'm still a very novice perl programmer, working from others' scripts mostly.

Code:
#!/usr/local/bin/perl --q

# usage: cat pkg_version.log  | grep -v zsh |grep -v (succ , fail, nvi, ) | xargs -J % % perl pl_pp.pl %
# ... sort of buggy. Halts often

# 2nd usage: perl pl_pp.pl www/libxul www/firefox devel/boost-libs  



use strict;
use warnings;
use diagnostics;
Main( @ARGV );
exit( 0 );
sub Main {
	for my $bsdport ( @_ ) {
		system(" portmaster -PP  $bsdport " ) or die $!;
	   #	Fudge ( $dir, glob '*' );
	}
}
sub Fudge {
# some code I removed from the upstream code from perlmonks.org 
}
__________________
FreeBSD 13-STABLE
Reply With Quote