mirror of
https://gitlab.com/tiggr/enex2kml.git
synced 2024-12-25 00:11:01 +01:00
added license and help text
This commit is contained in:
parent
53f0c40414
commit
782fa6f694
55
enex2kml.pl
55
enex2kml.pl
@ -1,4 +1,17 @@
|
||||
#!/usr/bin/perl -w
|
||||
#
|
||||
# This script converts the XML export file from Evernote to a
|
||||
# kml file for use with Google Earth.
|
||||
#
|
||||
# (c) 2013 by Marcus J. Ertl (http://www.colorful-sky.de/)
|
||||
#
|
||||
# This script is free to use and modify under the Creative Commones
|
||||
# Attribution-ShareAlike 3.0 Unported License. For more about this license
|
||||
# please visit http://creativecommons.org/licenses/by-sa/3.0/deed.de
|
||||
#
|
||||
# This script is shared without any support or warranty.
|
||||
# Just use it on your own risk.
|
||||
|
||||
use strict;
|
||||
use Encode;
|
||||
use Getopt::Long;
|
||||
@ -10,13 +23,18 @@ my $outFile = '';
|
||||
my $verbose = 0;
|
||||
my $showSkipped = 0;
|
||||
my $foldername = 'Evernote';
|
||||
my $help = 0;
|
||||
|
||||
GetOptions( 'i|input=s' => \$inFile,
|
||||
'o|output=s' => \$outFile,
|
||||
'v|verbose' => \$verbose,
|
||||
's|showSkipped' => \$showSkipped,
|
||||
'f|folder=s' => \$foldername);
|
||||
'f|folder=s' => \$foldername,
|
||||
'h|help' => \$help);
|
||||
|
||||
if ($help || $inFile eq '' || $outFile eq '') {
|
||||
printHelp();
|
||||
} else {
|
||||
my $count = 0;
|
||||
my $exported = 0;
|
||||
|
||||
@ -113,3 +131,38 @@ print "output:\t$outFile\n";
|
||||
print "Notes read:\t$count\n";
|
||||
print "Notes exported:\t$exported\n";
|
||||
print "Notes skipped:\t".$skipped."\n";
|
||||
}
|
||||
|
||||
sub printHelp {
|
||||
print <<"EOT";
|
||||
|
||||
\033[1menex2kml.pl
|
||||
===========\033[0m
|
||||
|
||||
This script converts the XML export file from Evernote to a
|
||||
kml file for use with Google Earth.
|
||||
|
||||
(c) 2013 by Marcus J. Ertl (http://www.colorful-sky.de/)
|
||||
|
||||
This script is free to use and modify under the Creative Commones
|
||||
Attribution-ShareAlike 3.0 Unported License. For more about this license
|
||||
please visit http://creativecommons.org/licenses/by-sa/3.0/deed.de
|
||||
|
||||
\033[1mUsage\033[0m
|
||||
enex2kml.pl -i inputfile.enex -o outputfile.kml ...
|
||||
|
||||
\033[1mParameters\033[0m
|
||||
i|input file to read
|
||||
o|output file to write/overwrite
|
||||
v|verbose show more infos
|
||||
s|showSkipped show skipped entries
|
||||
f|folder foldername in kml/Google Earth
|
||||
h|help show this help
|
||||
|
||||
Google Earth and Evernote are Trademarks of their respective owners.
|
||||
|
||||
This script is shared without any support or warranty.
|
||||
Just use it on your own risk.
|
||||
|
||||
EOT
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user