X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=bp_bin%2Flist_biopieces;h=1223bd6cb134acfadfb1e48851c48bc873ba35d5;hb=9ff3f4f82dedb5ccaa924fe311486bad3ed1248d;hp=cb718144dbeffac42bb57deca39f11b602860c2b;hpb=f7e5c1b54c562cc1b25fe419cacd4da9ac01f129;p=biopieces.git diff --git a/bp_bin/list_biopieces b/bp_bin/list_biopieces deleted file mode 120000 index cb71814..0000000 --- a/bp_bin/list_biopieces +++ /dev/null @@ -1 +0,0 @@ -../code_perl/Maasha/bin/list_biopieces \ No newline at end of file diff --git a/bp_bin/list_biopieces b/bp_bin/list_biopieces new file mode 100755 index 0000000..1223bd6 --- /dev/null +++ b/bp_bin/list_biopieces @@ -0,0 +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__