X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ian/git?a=blobdiff_plain;f=html%2Fjspage.pl;h=b409783f150b5b9008460e85db8e046732f3c81d;hb=61e711178455dbd0ec8f78d15791b7e25fbf7156;hp=37eea305caab599bd8e5113bf5195719f68074f2;hpb=d72db91888c1efddd56c67eee665b0a83c9329eb;p=sgt-puzzles.git diff --git a/html/jspage.pl b/html/jspage.pl index 37eea30..b409783 100755 --- a/html/jspage.pl +++ b/html/jspage.pl @@ -3,6 +3,17 @@ use strict; use warnings; +my $jspath = ""; +while ($ARGV[0] =~ /^-/) { + my $opt = shift @ARGV; + last if $opt eq "--"; + if ($opt =~ /^--jspath=(.+)$/) { + $jspath = $1; + } else { + die "jspage.pl: unrecognised option '$opt'\n"; + } +} + open my $footerfile, "<", shift @ARGV or die "footer: open: $!\n"; my $footer = ""; $footer .= $_ while <$footerfile>; @@ -62,7 +73,7 @@ EOF ${puzzlename}, ${unfinishedtitlefragment}from Simon Tatham's Portable Puzzle Collection - +