[SCM] Packaging of reminiscence branch, master, updated. debian/0.1.9-1-5-g27eec8e

Damyan Ivanov dmn at debian.org
Thu Mar 17 08:52:31 UTC 2011


The following commit has been merged in the master branch:
commit d4fbfe58929e6169ef0ae7ac0ef9f724a81187d3
Author: Damyan Ivanov <dmn at debian.org>
Date:   Thu Mar 17 10:24:24 2011 +0200

    reminiscence.pl: add support for --levelnum option (new in this release)

diff --git a/debian/reminiscence.pl b/debian/reminiscence.pl
index 98933e2..dd0634d 100644
--- a/debian/reminiscence.pl
+++ b/debian/reminiscence.pl
@@ -12,6 +12,7 @@ use warnings;
 
 my $data = "$ENV{HOME}/.reminiscence/data";
 my $save = "$ENV{HOME}/.reminiscence/save";
+my $start_level = 0;
 my $rs = '/usr/games/rs';
 
 use Pod::Usage;
@@ -21,6 +22,7 @@ use Getopt::Long;
 my $r = GetOptions(
     'datapath=s'    => \$data,
     'savepath=s'    => \$save,
+    'levelnum=s'    => \$start_level,
     'help' => sub { pod2usage( -exitcode => 0, -verbose => 1 ) },
 ) or pod2usage(2);
 
@@ -36,7 +38,7 @@ else {
     mkpath($save) or die "mkdir($save): $!\n";
 }
 
-exec "$rs --datapath=$data --savepath=$save";
+exec "$rs --datapath=$data --savepath=$save --levelnum=$start_level";
 
 __END__
 
@@ -49,6 +51,7 @@ reminiscence - a wrapper around rs with changed defaults
     reminiscence
     reminiscence --datapath path
     reminiscence --savepath path
+    reminiscence --levelnum num
     reminiscence --help
 
 =head1 DESCRITION
@@ -73,6 +76,10 @@ does not exist.
 Use I<path> for game saves. Defaults to I<.reminiscence/save> in user's home
 directory. The directory is created if needed.
 
+=item B<--levelnum> I<num>
+
+Start from level I<num>. Default is 0.
+
 =item B<--help>
 
 Display short usage info.
@@ -89,7 +96,7 @@ Display short usage info.
 
 =head1 COPYRIGHT AND LICENSE
 
-Copyright 2010 Damyan Ivanov L<dmn at debian.org>
+Copyright 2010, 2011 Damyan Ivanov L<dmn at debian.org>
 
 Permission is granted to use this work, with or without modifications, provided
 that this notice is retained. If we meet some day, and you think this stuff is

-- 
Packaging of reminiscence



More information about the Pkg-games-commits mailing list