From a4903066dd40675c65e20b4f57343bf6ce599bc2 Mon Sep 17 00:00:00 2001 From: Don Armstrong Date: Mon, 20 Aug 2007 19:20:15 +0000 Subject: [PATCH] * Update renamepic to use feh instead of xview * Start on get_sgf command --- get_sgf | 81 +++++++++++++++++++++++++++++++++++++++++++++++++++++++ renamepic | 2 +- 2 files changed, 82 insertions(+), 1 deletion(-) create mode 100755 get_sgf diff --git a/get_sgf b/get_sgf new file mode 100755 index 0000000..a33eddf --- /dev/null +++ b/get_sgf @@ -0,0 +1,81 @@ +#! /usr/bin/perl +# get_sgf downloads sgf from gobase, and is released +# under the terms of the GPL version 2, or any later version, at your +# option. See the file README and COPYING for more information. +# Copyright 2006 by Don Armstrong . +# $Id: perl_script 495 2006-08-10 08:02:01Z don $ + + +use warnings; +use strict; + +use Getopt::Long; +use Pod::Usage; + +=head1 NAME + +get_sgf - downloads sgf and ps.gz from gobase + +=head1 SYNOPSIS + + [options] + + Options: + --debug, -d debugging level (Default 0) + --help, -h display this help + --man, -m display manual + +=head1 OPTIONS + +=over + +=item B<--figures> + +Figures to make, defaults to '%100' + +=item B<--mode> + +Mode to use, defaults to 'ps' + +=item B<--extra> + +Other parameters; defaults to 'paper=letter;size=420' + +=item B<--debug, -d> + +Debug verbosity. (Default 0) + +=item B<--help, -h> + +Display brief useage information. + +=item B<--man, -m> + +Display this manual. + +=back + +=head1 EXAMPLES + + +=cut + + +use vars qw($DEBUG); + +my %options = (debug => 0, + help => 0, + man => 0, + ); + +GetOptions(\%options,'debug|d+','help|h|?','man|m'); + +pod2usage() if $options{help}; +pod2usage({verbose=>2}) if $options{man}; + +$DEBUG = $options{debug}; + + + + +__END__ diff --git a/renamepic b/renamepic index 9fcc567..e89dc07 100755 --- a/renamepic +++ b/renamepic @@ -101,7 +101,7 @@ while (defined($_ = $current_directory->read)) { foreach my $picture (@pictures) { my $line = sprintf('%03s',$file_counter).$$picture{default_name}; # view the image - `xview -shrink $$picture{old_name} > /dev/null` unless $$config{renumber_only}; + `feh -FZ $$picture{old_name} > /dev/null` unless $$config{renumber_only}; #prompt to rename the picture print "Rename $$picture{old_name}\n"; -- 2.39.5