summaryrefslogtreecommitdiff
path: root/debian/rules
diff options
context:
space:
mode:
authorJoey Hess <joey@kitenet.net>2010-07-16 16:05:59 -0400
committerJoey Hess <joey@kitenet.net>2010-07-16 16:07:51 -0400
commit936dc6fc8ed7bbb05ad858c04894e317924fef8f (patch)
treed46e0aa0e1a8a230bc2085fa06606bc7250279be /debian/rules
parent7a04e2d4161d2f23f92bc87e23349354c06e820b (diff)
add test of file replace
Diffstat (limited to 'debian/rules')
0 files changed, 0 insertions, 0 deletions
t find file");
  • }
  • $params{data} = readfile(srcfile($params{file}));
  • add_depends($params{page}, $params{file});
  • }
  • if (lc $params{format} eq 'auto') {
  • # first try the more simple format
  • if (is_dsv_data($params{data})) {
  • $params{format} = 'dsv';
  • }
  • else {
  • $params{format} = 'csv';
  • }
  • }
  • my @data;
  • if (lc $params{format} eq 'csv') {
  • @data=split_csv($params{data},
  • defined $params{delimiter} ? $params{delimiter} : ",",);
  • # linkify after parsing since html link quoting can
  • # confuse CSV parsing
  • if (! exists $params{file}) {
  • @data=map {
  • [ map {
  • IkiWiki::linkify($params{page},
  • $params{destpage}, $_);
  • } @$_ ]
  • } @data;
  • }
  • }
  • elsif (lc $params{format} eq 'dsv') {
  • # linkify before parsing since wikilinks can contain the
  • # delimiter
  • if (! exists $params{file}) {
  • $params{data} = IkiWiki::linkify($params{page},
  • $params{destpage}, $params{data});
  • }
  • @data=split_dsv($params{data},
  • defined $params{delimiter} ? $params{delimiter} : "|",);
  • }
  • else {
  • error gettext("unknown data format");
  • }
  • my $header;