From b4e2708c6f8cc2191c581aef404803478e65e678 Mon Sep 17 00:00:00 2001 From: Silvio Rhatto Date: Thu, 18 Sep 2014 16:47:55 -0300 Subject: Moved scripts to custom repos --- rem2ics | 31 ------------------------------- 1 file changed, 31 deletions(-) delete mode 100755 rem2ics (limited to 'rem2ics') diff --git a/rem2ics b/rem2ics deleted file mode 100755 index f4c7c05..0000000 --- a/rem2ics +++ /dev/null @@ -1,31 +0,0 @@ -#!/usr/bin/awk -f -# rem2ics by Anthony J. Chivetta -# from http://www.roaringpenguin.com/wiki/index.php/Rem2ics -# version 0.1 - 2006-06-09 -# version 0.2 - 2010-10-27 (one-line patch by Shane Kerr ) -# Converts output of remind -s to iCalendar -# usage: remind -s | rem2ics -# -# THE FOLLOWING CODE IS RELEASED INTO THE PUBLIC DOMAIN -# -# This program is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE -BEGIN { -print "BEGIN:VCALENDAR" -print "VERSION:2.0" -} -{ -gsub("/","",$1) -print "BEGIN:VEVENT" -if ($5 != "*"){ -printf("DTSTART:%dT%02d%02d00\n",$1,$5/60,$5%60) -printf("DTEND:%dT%02d%02d00\n",$1,($5+$4)/60,($5+$4)%60) -print "SUMMARY:" substr($0,match($0,$7)) -} else { -printf("DTSTART:%d\n",$1) -print "SUMMARY:" substr($0,match($0,$6)) -} -print "END:VEVENT" -} -END {print "END:VCALENDAR"} -- cgit v1.2.3