From 382fc245366999b540bf547b9ccb2f9529a2116b Mon Sep 17 00:00:00 2001 From: Daniel Friesel Date: Mon, 26 Apr 2010 21:00:52 +0200 Subject: Slight makefile/manpage cleanups, release v1.1.1 while at it --- Changelog | 4 ++++ Makefile | 18 ++++++++++-------- bin/efa | 18 +++++++++--------- 3 files changed, 23 insertions(+), 17 deletions(-) diff --git a/Changelog b/Changelog index fd86b12..89df586 100644 --- a/Changelog +++ b/Changelog @@ -1,3 +1,7 @@ +efa 1.1.1 - Mon Apr 26 2010 + + * Add short options + efa 1.1 - Sun Jan 17 2010 * Code cleanup and DRY-ing diff --git a/Makefile b/Makefile index eb1d658..e5891da 100644 --- a/Makefile +++ b/Makefile @@ -1,19 +1,21 @@ -prefix ?= /usr/local +PREFIX ?= /usr/local + +basedir = ${DESTDIR}${PREFIX} build/efa.1: bin/efa mkdir -p build pod2man $< > $@ install: build/efa.1 - mkdir -p $(prefix)/bin $(prefix)/share/man/man1 - cp bin/efa $(prefix)/bin/efa - cp build/efa.1 $(prefix)/share/man/man1/efa.1 - chmod 755 $(prefix)/bin/efa - chmod 644 $(prefix)/share/man/man1/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 $(prefix)/bin/efa - rm -f $(prefix)/share/man/man1/efa.1 + rm -f ${basedir}/bin/efa + rm -f ${basedir}/share/man/man1/efa.1 clean: rm -rf build diff --git a/bin/efa b/bin/efa index ebc490d..72d6ed8 100755 --- a/bin/efa +++ b/bin/efa @@ -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.1+git'; +my $version = '1.1.1+git'; my $content; my %post; my $www = WWW::Mechanize->new( @@ -407,7 +407,7 @@ efa - unofficial efa.vrr.de command line client =head1 DESCRIPTION B is a command line client for the L web interface. -It sends the specified information to the online form and displays the results +It sends the specified information to the online form and displays the results. =head1 OPTIONS @@ -430,8 +430,8 @@ Travel via this place Designate type of the I for from/to/via. Possible Is: B (default), B
, B (point of interest) -As an alternative to these options, it is possible to specify the I -of the to/from/via options as "addr:I" or "poi:I", respectively. +Alternatively, you can specify the I of the from/to/via options as +"addr:I" or "poi:I", respectively =item B<-t>|B<--time>|B<--depart> I:I @@ -447,7 +447,7 @@ Journey date =item B<-b>|B<--bike> -Choose connections where you can take a bike with you +Choose connections allowing to carry a bike =item B<-e>|B<--exclude> I @@ -512,7 +512,7 @@ Accepted values: normal (default), fast, slow =item B<-I>|B<--ignore-info> [ I ] -Ignore additional information matching I (default: /Fahrradmitnahme/). +Ignore additional information matching I (default: /Fahrradmitnahme/) If I is not supplied, removes the default regex (-E nothing will be ignored) @@ -527,7 +527,7 @@ Add I with I to the HTTP POST request sent to the EFA server. This can be used to use setting B does not yet cover, like C<--post lineRestriction=400> to also show IC and ICE trains. Note that B<--post> will be overridden by the standard efa options, such as -B<--time>. +B<--time> =item B<-v>|B<--version> @@ -537,5 +537,5 @@ Print version information =head1 BUGS -Arguments to B should be plain ASCII. Unicode may work, but it cannot be -guaranteed. +The Unicode handling is slightly messed up. Therefore, arguments to B +should always be plain ASCII (ue instead of E etc). -- cgit v1.2.3