Compare commits

..

No commits in common. "6d8520a0167bad3db2a79c7de68f22c302630cce" and "dc88d5a965753ffe19056f1f150c42738c77434d" have entirely different histories.

4 changed files with 545 additions and 783 deletions

View File

@ -34,8 +34,6 @@ desc { desc = desc "\\n" $0; next; }
if (!to)
exit 1
getline
location = substr($0, 1, 2) == "@ " ? substr($0, 3) : ""
if (location) getline
summary = substr($0, 1, 2) == "# " ? substr($0, 3) : ""
if (!summary)
exit 1
@ -85,7 +83,6 @@ END {
exit 1
}
escape(summary);
escape(location);
escape(desc);
# print ical
@ -105,7 +102,6 @@ END {
print "DTEND;VALUE=" to_type ":" to
if (summary) print_fold("SUMMARY:", summary, i, s);
if (desc) print_fold("DESCRIPTION:", desc, i, s);
if (location) print_fold("LOCATION:", location, i, s);
print "END:VEVENT"
print "END:VCALENDAR"
}

View File

@ -72,7 +72,6 @@ ENDFILE {
exit 1
}
escape(summary);
escape(location);
escape(desc);
}
}
@ -87,8 +86,6 @@ NR == FNR {
if (!to)
exit 1
getline
location = substr($0, 1, 2) == "@ " ? substr($0, 3) : ""
if (location) getline
summary = substr($0, 1, 2) == "# " ? substr($0, 3) : ""
if (!summary)
exit 1
@ -101,7 +98,7 @@ NR == FNR {
/^BEGIN:VEVENT$/ { inside = 1; print; next }
/^X-ALT-DESC/ && inside { next } # drop this alternative description
/^ / && inside { next } # drop this folded line (the only content with folded lines will be updated)
/^(DTSTART|DTEND|SUMMARY|LOCATION|CATEGORIES|DESCRIPTION|LAST-MODIFIED)/ && inside { next } # skip for now, we will write updated fields at the end
/^(DTSTART|DTEND|SUMMARY|CATEGORIES|DESCRIPTION|LAST-MODIFIED)/ && inside { next } # skip for now, we will write updated fields at the end
/^SEQUENCE/ && inside { seq = $2; next } # store sequence number and skip
/^END:VEVENT$/ {
seq = seq ? seq + 1 : 1
@ -111,7 +108,6 @@ NR == FNR {
print "DTEND;VALUE=" to_type ":" to
print_fold("SUMMARY:", summary, i, s)
print_fold("DESCRIPTION:", desc, i, s)
print_fold("LOCATION:", location, i, s)
inside = ""
}
{ print }

File diff suppressed because it is too large Load Diff