X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=bp_bin%2Flist_biopieces;h=1223bd6cb134acfadfb1e48851c48bc873ba35d5;hb=48bea5c28b89dc5586d0bddb338ccd6ba23aa1f9;hp=4cd1d4413a253b7338666f848168a0f9929fba03;hpb=6a4043cd15c4d8f6c251e4a9c50b006f95cda2db;p=biopieces.git diff --git a/bp_bin/list_biopieces b/bp_bin/list_biopieces index 4cd1d44..1223bd6 100755 --- a/bp_bin/list_biopieces +++ b/bp_bin/list_biopieces @@ -1,6 +1,79 @@ #!/usr/bin/env perl +# Copyright (C) 2007-2009 Martin A. Hansen. + +# This program is free software; you can redistribute it and/or +# modify it under the terms of the GNU General Public License +# as published by the Free Software Foundation; either version 2 +# of the License, or (at your option) any later version. + +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. + +# You should have received a copy of the GNU General Public License +# along with this program; if not, write to the Free Software +# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + +# http://www.gnu.org/copyleft/gpl.html + + +# >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>> DESCRIPTION <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<< + +# Print summary for all Biopices. + +# >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>><<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<< + + use warnings; use strict; - +use Maasha::Common; use Maasha::Biopieces; +use Maasha::Gwiki; + + +# >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>><<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<< + + +my ( $options, @files, $file, $wiki, $program, $summary ); + +$options = Maasha::Biopieces::parse_options(); + +@files = Maasha::Filesys::ls_files( "$ENV{ 'BP_DIR' }/bp_usage" ); + +foreach $file ( sort @files ) +{ + if ( $file =~ /\/([BGa-z0-9_]+)\.wiki$/ ) + { + $program = $1; + + $wiki = Maasha::Gwiki::gwiki_read( $file ); + + $summary = $wiki->[ 0 ]->[ 0 ]->{ 'TEXT' }; + $summary =~ s/^#summary\s+//; + + printf( "%-30s%s\n", $program, $summary ); + } +} + + +# >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>><<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<< + + +BEGIN +{ + Maasha::Biopieces::status_set(); +} + + +END +{ + Maasha::Biopieces::status_log(); +} + + +# >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>><<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<< + + +__END__