Skip to content

Commit

Permalink
add a little bin/jbdoc script to find and open doc webpages
Browse files Browse the repository at this point in the history
  • Loading branch information
rbuels committed Mar 9, 2012
1 parent 1a32828 commit fc3ccfc
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions bin/jbdoc
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
#!/usr/bin/env perl
use strict;
use warnings;

use Cwd;
use File::Spec;
use File::Basename;

my $f = basename( $ARGV[0] || 'Browser', qr/\.[^.]*/) || 'Browser';
$f = File::Spec->catfile( 'docs', 'jsdoc', "$f.html" );
exec $ENV{BROWSER} || 'firefox', $f;

0 comments on commit fc3ccfc

Please sign in to comment.