improvement: externalized files

This commit is contained in:
2025-06-18 13:49:56 +02:00
parent 8970e89cc0
commit 5a3668d6a9
20 changed files with 1114 additions and 1339 deletions

View File

@@ -6,21 +6,7 @@
##
## LIMITATION: This program does not fold long content lines.
# Functions
# Escape string to be used as content.
#
# @input str: Content string
# @return: Escaped string
function escape(str)
{
gsub("\\\\", "\\\\", str)
gsub(";", "\\;", str)
gsub(",", "\\,", str)
return str
}
# AWK program
@include "lib/awk/icalendar.awk"
BEGIN { FS = "[:;]"; zulu = strftime("%Y%m%dT%H%M%SZ", systime(), 1) }
/^BEGIN:VEVENT$/ { inside = 1 }