Mercurial > hg > Members > anatofuz > slides
view slide-cr @ 16:1b8fa3e9b962
auto-Update generated slides by script
author | Takahiro SHIMIZU <anatofuz@cr.ie.u-ryukyu.ac.jp> |
---|---|
date | Tue, 13 Feb 2018 17:09:47 +0900 |
parents | 80767afba59c |
children | b073867b46ba |
line wrap: on
line source
#!/usr/bin/env perl use strict; use warnings; use utf8; use lib "lib","lib/Slideshow/local/lib/perl5"; use Slideshow::Util; use feature 'say'; my $flags = getopts(@ARGV); help() if $flags->{help}; if ($flags->{new}){ new(set_template('lib/template.md'),"slides"); } elsif ($flags->{build}) { build_recently("slides"); } elsif ($flags->{build_open}) { build_recently("slides"); open_slide("slides"); } elsif ( $flags->{open}) { open_slide("slides"); } elsif ( $flags->{edit}) { edit_slide("slides"); } else { build_pinpoint($flags->{build_point}); } sub help { say 'slider [new build build-open open edit]'; } __END__