emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* ical2org.awk
@ 2020-05-07 12:05 Andreas Röhler
  2020-05-07 13:03 ` ical2org.awk Eric S Fraga
  0 siblings, 1 reply; 10+ messages in thread
From: Andreas Röhler @ 2020-05-07 12:05 UTC (permalink / raw)
  To: emacs-orgmode

Hi,

thanks providing ical2org.awk.

When running on Debian8 however, encountered a bunch of errors:

awk: ./ical2org.awk: line 394: function strftime never defined
awk: ./ical2org.awk: line 394: function gensub never defined
awk: ./ical2org.awk: line 394: function gensub never defined
awk: ./ical2org.awk: line 394: function mktime never defined
awk: ./ical2org.awk: line 394: function gensub never defined

Turns out had to install gawk.

After changing the shebang accordingly it worked.

Just FYI,

thanks again,

Andreas,

GNU Emacs 28.0.50 (build 1, i686-pc-linux-gnu, GTK+ Version 3.14.5, 
cairo version 1.14.0) of 2020-04-06



^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: ical2org.awk
  2020-05-07 12:05 ical2org.awk Andreas Röhler
@ 2020-05-07 13:03 ` Eric S Fraga
  2020-05-22 14:14   ` ical2org.awk Bastien
  0 siblings, 1 reply; 10+ messages in thread
From: Eric S Fraga @ 2020-05-07 13:03 UTC (permalink / raw)
  To: Andreas Röhler; +Cc: emacs-orgmode

On Thursday,  7 May 2020 at 14:05, Andreas Röhler wrote:
> thanks providing ical2org.awk.
> When running on Debian8 however, encountered a bunch of errors:

[...]

> Turns out had to install gawk.

Yes, I guess ical2org does expect gawk.  I should have made that
clear.  On my Debian installation (currently a bullseye/sid
combination), /usr/bin/awk points to gawk (via /etc/alternatives/awk) so
I never thought about it. <blush>

-- 
: Eric S Fraga via Emacs 28.0.50, Org release_9.3.6-577-gb171ff


^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: ical2org.awk
  2020-05-07 13:03 ` ical2org.awk Eric S Fraga
@ 2020-05-22 14:14   ` Bastien
  2020-05-26 14:57     ` ical2org.awk Eric S Fraga
  0 siblings, 1 reply; 10+ messages in thread
From: Bastien @ 2020-05-22 14:14 UTC (permalink / raw)
  To: Eric S Fraga; +Cc: Andreas Röhler, emacs-orgmode

Hi Eric,

Eric S Fraga <e.fraga@ucl.ac.uk> writes:

> Yes, I guess ical2org does expect gawk.  I should have made that
> clear.  On my Debian installation (currently a bullseye/sid
> combination), /usr/bin/awk points to gawk (via /etc/alternatives/awk) so
> I never thought about it. <blush>

I allowed myself to use #!/usr/bin/env gawk -f here:

https://code.orgmode.org/bzg/worg/commit/2d5d92ca61

I see there is
https://github.com/msherry/ical2org/blob/master/ical2org.awk

so perhaps hosting the code on worg/code/ is not so useful
anymore?  If you see useful places in Worg where pointers
could be updated, please go ahead.

Thanks,

-- 
 Bastien


^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: ical2org.awk
  2020-05-22 14:14   ` ical2org.awk Bastien
@ 2020-05-26 14:57     ` Eric S Fraga
  2020-09-04 10:34       ` ical2org.awk Bastien
  0 siblings, 1 reply; 10+ messages in thread
From: Eric S Fraga @ 2020-05-26 14:57 UTC (permalink / raw)
  To: Bastien; +Cc: Andreas Röhler, emacs-orgmode

On Friday, 22 May 2020 at 16:14, Bastien wrote:
> I see there is
> https://github.com/msherry/ical2org/blob/master/ical2org.awk

Interesting.  I hadn't been aware of that fork.

> so perhaps hosting the code on worg/code/ is not so useful
> anymore?  

I don't really have a strong opinion about this.  Happy for it to remain
(it does work) but also happy to have it removed and a link to that fork
put in.  My own version has diverged from the one I put on Worg ever so
long ago now in any case.

-- 
: Eric S Fraga via Emacs 28.0.50, Org release_9.3.6-640-g9bc0cc


^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: ical2org.awk
  2020-05-26 14:57     ` ical2org.awk Eric S Fraga
@ 2020-09-04 10:34       ` Bastien
  2020-09-04 11:01         ` ical2org.awk Russell Adams
  2020-09-04 13:32         ` ical2org.awk Eric S Fraga
  0 siblings, 2 replies; 10+ messages in thread
From: Bastien @ 2020-09-04 10:34 UTC (permalink / raw)
  To: Eric S Fraga; +Cc: Andreas Röhler, emacs-orgmode

Hi Eric,

Eric S Fraga <e.fraga@ucl.ac.uk> writes:

> I don't really have a strong opinion about this.  Happy for it to remain
> (it does work) but also happy to have it removed and a link to that fork
> put in.  My own version has diverged from the one I put on Worg ever so
> long ago now in any case.

I've been thinking about this from time to time.  I think everything
in worg/code/ should move on other places---i.e. where people expect
code to be hosted and found.

So please feel free to move ahead with moving ical2org.awk.

Thanks,

-- 
 Bastien


^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: ical2org.awk
  2020-09-04 10:34       ` ical2org.awk Bastien
@ 2020-09-04 11:01         ` Russell Adams
  2020-09-04 13:31           ` ical2org.awk Eric S Fraga
  2020-09-04 13:32         ` ical2org.awk Eric S Fraga
  1 sibling, 1 reply; 10+ messages in thread
From: Russell Adams @ 2020-09-04 11:01 UTC (permalink / raw)
  To: emacs-orgmode

On Fri, Sep 04, 2020 at 12:34:54PM +0200, Bastien wrote:
> So please feel free to move ahead with moving ical2org.awk.

On a tangent, I found there was existing code in Gnus to import
ical. Do we need another library or file to manage if the
functionality is already in emacs?

https://lists.gnu.org/archive/html/emacs-orgmode/2020-08/msg00154.html

------------------------------------------------------------------
Russell Adams                            RLAdams@AdamsInfoServ.com

PGP Key ID:     0x1160DCB3           http://www.adamsinfoserv.com/

Fingerprint:    1723 D8CA 4280 1EC9 557F  66E8 1154 E018 1160 DCB3


^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: ical2org.awk
  2020-09-04 11:01         ` ical2org.awk Russell Adams
@ 2020-09-04 13:31           ` Eric S Fraga
  2020-09-04 13:48             ` ical2org.awk Russell Adams
  0 siblings, 1 reply; 10+ messages in thread
From: Eric S Fraga @ 2020-09-04 13:31 UTC (permalink / raw)
  To: emacs-orgmode

On Friday,  4 Sep 2020 at 13:01, Russell Adams wrote:
> On Fri, Sep 04, 2020 at 12:34:54PM +0200, Bastien wrote:
>> So please feel free to move ahead with moving ical2org.awk.
>
> On a tangent, I found there was existing code in Gnus to import
> ical. Do we need another library or file to manage if the
> functionality is already in emacs?

As the original author of ical2org.awk, I should say that I do use the
functionality within gnus for importing calendar invites that I receive,
esp. from colleagues, into org.  I use the awk script to batch import
calendar entries from e.g. Google or Office365 calendars.  I'm not sure
if the code you pointed to has the functionality to batch import
although I guess it would be quite trivial to write some code around it.

I'm happy for ical2org.awk to be removed from Worg although I will
obviously continue using my own version as it's part of my somewhat
complex workflow that's evolved over the past decade.

-- 
: Eric S Fraga via Emacs 28.0.50, Org release_9.3.7-725-g7bc18e


^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: ical2org.awk
  2020-09-04 10:34       ` ical2org.awk Bastien
  2020-09-04 11:01         ` ical2org.awk Russell Adams
@ 2020-09-04 13:32         ` Eric S Fraga
  2020-09-05  8:22           ` ical2org.awk Bastien
  1 sibling, 1 reply; 10+ messages in thread
From: Eric S Fraga @ 2020-09-04 13:32 UTC (permalink / raw)
  To: Bastien; +Cc: Andreas Röhler, emacs-orgmode

On Friday,  4 Sep 2020 at 12:34, Bastien wrote:
> So please feel free to move ahead with moving ical2org.awk.

I'm not entirely sure what is meant to be done and by whom!  If you wish
to replace the link on Worg to the github site you found, by all means
do so.  My own version of ical2org.awk is not hosted on any public site
that I could share.

thank you,
eric

-- 
: Eric S Fraga via Emacs 28.0.50, Org release_9.3.7-725-g7bc18e


^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: ical2org.awk
  2020-09-04 13:31           ` ical2org.awk Eric S Fraga
@ 2020-09-04 13:48             ` Russell Adams
  0 siblings, 0 replies; 10+ messages in thread
From: Russell Adams @ 2020-09-04 13:48 UTC (permalink / raw)
  To: emacs-orgmode

On Fri, Sep 04, 2020 at 02:31:13PM +0100, Eric S Fraga wrote:
> As the original author of ical2org.awk, I should say that I do use the
> functionality within gnus for importing calendar invites that I receive,
> esp. from colleagues, into org.

It was hard to find that, so maybe we should both document it
better. ;]

> I use the awk script to batch import calendar entries from
> e.g. Google or Office365 calendars.  I'm not sure if the code you
> pointed to has the functionality to batch import although I guess it
> would be quite trivial to write some code around it.

I hadn't used it that way. Interesting.

> I'm happy for ical2org.awk to be removed from Worg although I will
> obviously continue using my own version as it's part of my somewhat
> complex workflow that's evolved over the past decade.

I'm not sure where it is located. If its a useful contribution perhaps
Worg is where it should be?

------------------------------------------------------------------
Russell Adams                            RLAdams@AdamsInfoServ.com

PGP Key ID:     0x1160DCB3           http://www.adamsinfoserv.com/

Fingerprint:    1723 D8CA 4280 1EC9 557F  66E8 1154 E018 1160 DCB3


^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: ical2org.awk
  2020-09-04 13:32         ` ical2org.awk Eric S Fraga
@ 2020-09-05  8:22           ` Bastien
  0 siblings, 0 replies; 10+ messages in thread
From: Bastien @ 2020-09-05  8:22 UTC (permalink / raw)
  To: Eric S Fraga; +Cc: Andreas Röhler, emacs-orgmode

Hi Eric,

Eric S Fraga <e.fraga@ucl.ac.uk> writes:

> On Friday,  4 Sep 2020 at 12:34, Bastien wrote:
>> So please feel free to move ahead with moving ical2org.awk.
>
> I'm not entirely sure what is meant to be done and by whom!  If you wish
> to replace the link on Worg to the github site you found, by all means
> do so.  

yes, this is what I mean and what I've partially just done in Worg
(see commit 08276954).  I'm not removing the code yet, as it may have
been referenced on the web, but at least we point to a more recent
version of it.

Thanks,

-- 
 Bastien


^ permalink raw reply	[flat|nested] 10+ messages in thread

end of thread, other threads:[~2020-09-05  8:23 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2020-05-07 12:05 ical2org.awk Andreas Röhler
2020-05-07 13:03 ` ical2org.awk Eric S Fraga
2020-05-22 14:14   ` ical2org.awk Bastien
2020-05-26 14:57     ` ical2org.awk Eric S Fraga
2020-09-04 10:34       ` ical2org.awk Bastien
2020-09-04 11:01         ` ical2org.awk Russell Adams
2020-09-04 13:31           ` ical2org.awk Eric S Fraga
2020-09-04 13:48             ` ical2org.awk Russell Adams
2020-09-04 13:32         ` ical2org.awk Eric S Fraga
2020-09-05  8:22           ` ical2org.awk Bastien

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).