summaryrefslogtreecommitdiff
path: root/localrdf2vcard
blob: ce5f205c6b954b597ef5bba9c159860b3baecff6 (plain)
  1. #!/usr/bin/perl
  2. # Copyright © 2015 Jonas Smedegaard <dr@jones.dk>
  3. # Description: Recode RDF file(s) to vCard data on STDOUT
  4. #
  5. # This program is free software; you can redistribute it and/or modify
  6. # it under the terms of the GNU General Public License as published by
  7. # the Free Software Foundation; either version 3, or (at your option)
  8. # any later version.
  9. #
  10. # This program is distributed in the hope that it will be useful, but
  11. # WITHOUT ANY WARRANTY; without even the implied warranty of
  12. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
  13. # General Public License for more details.
  14. #
  15. # You should have received a copy of the GNU General Public License
  16. # along with this program. If not, see <http://www.gnu.org/licenses/>.
  17. #
  18. # Depends: librdf-vcard-perl
  19. use strict;
  20. use warnings;
  21. use RDF::vCard::Exporter;
  22. my $exporter = RDF::vCard::Exporter->new;
  23. while (my $input = shift @ARGV) {
  24. print $_ foreach $exporter->export_cards( $input, sort => 1 );
  25. }