]> git.donarmstrong.com Git - bin.git/commitdiff
* Update renamepic to use feh instead of xview
authorDon Armstrong <don@donarmstrong.com>
Mon, 20 Aug 2007 19:20:15 +0000 (19:20 +0000)
committerDon Armstrong <don@donarmstrong.com>
Mon, 20 Aug 2007 19:20:15 +0000 (19:20 +0000)
 * Start on get_sgf command

get_sgf [new file with mode: 0755]
renamepic

diff --git a/get_sgf b/get_sgf
new file mode 100755 (executable)
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 <don@donarmstrong.com>.
+# $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__
index 9fcc567d8c1063af8101b0b40b80d5c48b2c7b05..e89dc073b9d3c49a07802d685627d50f1a716df7 100755 (executable)
--- 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
 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";
 
      #prompt to rename the picture
      print "Rename $$picture{old_name}\n";