Loading .gitignore +3 −1 Original line number Diff line number Diff line build /_build /Build /blib Build.PL 0 → 100644 +25 −0 Original line number Diff line number Diff line #!/usr/bin/env perl use strict; use warnings; use Module::Build; my $build = Module::Build->new( build_requires => { 'Test::More' => 0, 'Test::Compile' => 0, 'Test::Pod' => 0, 'Test::Command' => 0, }, dist_name => 'efa', dist_version_from => 'bin/efa', license => 'unrestricted', requires => { 'perl' => '5.10.0', 'Getopt::Long' => 0, 'XML::LibXML' => 0, 'WWW::Mechanize' => 0, }, script_files => 'bin/', ); $build->create_build_script; Makefiledeleted 100644 → 0 +0 −26 Original line number Diff line number Diff line PREFIX ?= /usr/local basedir = ${DESTDIR}${PREFIX} build/efa.1: bin/efa mkdir -p build pod2man $< > $@ install: build/efa.1 mkdir -p ${basedir}/bin ${basedir}/share/man/man1 cp bin/efa ${basedir}/bin/efa cp build/efa.1 ${basedir}/share/man/man1/efa.1 chmod 755 ${basedir}/bin/efa chmod 644 ${basedir}/share/man/man1/efa.1 uninstall: rm -f ${basedir}/bin/efa rm -f ${basedir}/share/man/man1/efa.1 test: prove clean: rm -rf build .PHONY: install uninstall test clean README +5 −4 Original line number Diff line number Diff line Loading @@ -6,11 +6,12 @@ Requires: Installation > make > make test > sudo make install > perl Build.PL > ./Build > ./Build test > sudo ./Build install You can skip "make test" if you want. See also the Module::Build documentation. Extra modules required for testing: - Test::More Loading bin/efa +2 −2 Original line number Diff line number Diff line Loading @@ -13,7 +13,7 @@ use WWW::Mechanize; my $firsturl = 'http://efa.vrr.de/vrr/XSLT_TRIP_REQUEST2?language=de&itdLPxx_transpCompany=vrr'; my $posturl = 'http://efa.vrr.de/vrr/XSLT_TRIP_REQUEST2'; my $version = '1.3+git'; my $VERSION = '1.3+git'; my $content; my $connections; my %post; Loading Loading @@ -294,7 +294,7 @@ GetOptions( 't|time=s' => \&opt_time, 'timeout=i' => \&opt_timeout, 'to=s{2}' => \@to, 'v|version' => sub {print "efa version $version\n"; exit 0}, 'v|version' => sub {print "efa version $VERSION\n"; exit 0}, 'via=s{2}' => \@via, 'w|walk-speed=s' => \&opt_walk_speed, Loading Loading
Build.PL 0 → 100644 +25 −0 Original line number Diff line number Diff line #!/usr/bin/env perl use strict; use warnings; use Module::Build; my $build = Module::Build->new( build_requires => { 'Test::More' => 0, 'Test::Compile' => 0, 'Test::Pod' => 0, 'Test::Command' => 0, }, dist_name => 'efa', dist_version_from => 'bin/efa', license => 'unrestricted', requires => { 'perl' => '5.10.0', 'Getopt::Long' => 0, 'XML::LibXML' => 0, 'WWW::Mechanize' => 0, }, script_files => 'bin/', ); $build->create_build_script;
Makefiledeleted 100644 → 0 +0 −26 Original line number Diff line number Diff line PREFIX ?= /usr/local basedir = ${DESTDIR}${PREFIX} build/efa.1: bin/efa mkdir -p build pod2man $< > $@ install: build/efa.1 mkdir -p ${basedir}/bin ${basedir}/share/man/man1 cp bin/efa ${basedir}/bin/efa cp build/efa.1 ${basedir}/share/man/man1/efa.1 chmod 755 ${basedir}/bin/efa chmod 644 ${basedir}/share/man/man1/efa.1 uninstall: rm -f ${basedir}/bin/efa rm -f ${basedir}/share/man/man1/efa.1 test: prove clean: rm -rf build .PHONY: install uninstall test clean
README +5 −4 Original line number Diff line number Diff line Loading @@ -6,11 +6,12 @@ Requires: Installation > make > make test > sudo make install > perl Build.PL > ./Build > ./Build test > sudo ./Build install You can skip "make test" if you want. See also the Module::Build documentation. Extra modules required for testing: - Test::More Loading
bin/efa +2 −2 Original line number Diff line number Diff line Loading @@ -13,7 +13,7 @@ use WWW::Mechanize; my $firsturl = 'http://efa.vrr.de/vrr/XSLT_TRIP_REQUEST2?language=de&itdLPxx_transpCompany=vrr'; my $posturl = 'http://efa.vrr.de/vrr/XSLT_TRIP_REQUEST2'; my $version = '1.3+git'; my $VERSION = '1.3+git'; my $content; my $connections; my %post; Loading Loading @@ -294,7 +294,7 @@ GetOptions( 't|time=s' => \&opt_time, 'timeout=i' => \&opt_timeout, 'to=s{2}' => \@to, 'v|version' => sub {print "efa version $version\n"; exit 0}, 'v|version' => sub {print "efa version $VERSION\n"; exit 0}, 'via=s{2}' => \@via, 'w|walk-speed=s' => \&opt_walk_speed, Loading