emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* Problem publishing symbolic links
@ 2010-12-11  0:53 Aidan Gauland
  2010-12-19 17:35 ` David Maus
  0 siblings, 1 reply; 4+ messages in thread
From: Aidan Gauland @ 2010-12-11  0:53 UTC (permalink / raw)
  To: emacs-orgmode


[-- Attachment #1.1: Type: text/plain, Size: 373 bytes --]

Hi,

I am using Org-mode to run my website, and I have symbolic links to
files elsewhere in my home directory (which are dereferenced when
published).  When I org-publish the project, it doesn't re-publish the
symbolic links even if the target has changed.

Any idea what I could do to avoid manually copying the files that
org-publish should be publishing?

Thanks,
Aidan

[-- Attachment #1.2: Digital signature --]
[-- Type: application/pgp-signature, Size: 198 bytes --]

[-- Attachment #2: Type: text/plain, Size: 201 bytes --]

_______________________________________________
Emacs-orgmode mailing list
Please use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode

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

* Re: Problem publishing symbolic links
  2010-12-11  0:53 Problem publishing symbolic links Aidan Gauland
@ 2010-12-19 17:35 ` David Maus
  2010-12-20  1:11   ` Bug?: " Aidan Gauland
  0 siblings, 1 reply; 4+ messages in thread
From: David Maus @ 2010-12-19 17:35 UTC (permalink / raw)
  To: Aidan Gauland; +Cc: emacs-orgmode


[-- Attachment #1.1: Type: text/plain, Size: 1118 bytes --]

At Sat, 11 Dec 2010 13:53:17 +1300,
Aidan Gauland wrote:
>
> [1  <multipart/signed (7bit)>]
> [1.1  <text/plain; us-ascii (7bit)>]
> Hi,
>
> I am using Org-mode to run my website, and I have symbolic links to
> files elsewhere in my home directory (which are dereferenced when
> published).  When I org-publish the project, it doesn't re-publish the
> symbolic links even if the target has changed.
>
> Any idea what I could do to avoid manually copying the files that
> org-publish should be publishing?

Org checks the file modification time to determine whether to
republish a file or not.  Due to the nature of /sym/links their
modification date does not change if the directory entry they are
pointing to changes.

Maybe you could use hard links instead of symlinks if the files you
are linking exist on the same hard disk partition.  If this is not the
case maybe using a command line tool that syncs the directories
(e.g. rsync) could be an option (Cf. Manual, 13.1.2 Sources and
destinations for files).

HTH,
  -- David
--
OpenPGP... 0x99ADB83B5A4478E6
Jabber.... dmjena@jabber.org
Email..... dmaus@ictsoc.de

[-- Attachment #1.2: Type: application/pgp-signature, Size: 230 bytes --]

[-- Attachment #2: Type: text/plain, Size: 201 bytes --]

_______________________________________________
Emacs-orgmode mailing list
Please use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode

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

* Bug?: Re: Problem publishing symbolic links
  2010-12-19 17:35 ` David Maus
@ 2010-12-20  1:11   ` Aidan Gauland
  2011-01-06 19:26     ` David Maus
  0 siblings, 1 reply; 4+ messages in thread
From: Aidan Gauland @ 2010-12-20  1:11 UTC (permalink / raw)
  To: David Maus; +Cc: emacs-orgmode


[-- Attachment #1.1: Type: text/plain, Size: 757 bytes --]

On Sun, Dec 19, 2010 at 06:35:12PM +0100, David Maus wrote:
> Org checks the file modification time to determine whether to
> republish a file or not.  Due to the nature of /sym/links their
> modification date does not change if the directory entry they are
> pointing to changes.

Then shouldn't Org-mode check the modification time of the *target*?

> Maybe you could use hard links instead of symlinks if the files you
> are linking exist on the same hard disk partition.  If this is not the
> case maybe using a command line tool that syncs the directories
> (e.g. rsync) could be an option (Cf. Manual, 13.1.2 Sources and
> destinations for files).

That's what I'll have to do.  This seems to be more of a workaround
than a solution, though.

--Aidan

[-- Attachment #1.2: Digital signature --]
[-- Type: application/pgp-signature, Size: 198 bytes --]

[-- Attachment #2: Type: text/plain, Size: 201 bytes --]

_______________________________________________
Emacs-orgmode mailing list
Please use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode

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

* Re: Bug?: Re: Problem publishing symbolic links
  2010-12-20  1:11   ` Bug?: " Aidan Gauland
@ 2011-01-06 19:26     ` David Maus
  0 siblings, 0 replies; 4+ messages in thread
From: David Maus @ 2011-01-06 19:26 UTC (permalink / raw)
  To: Aidan Gauland; +Cc: David Maus, emacs-orgmode


[-- Attachment #1.1: Type: text/plain, Size: 607 bytes --]

At Mon, 20 Dec 2010 14:11:52 +1300,
Aidan Gauland wrote:
>
> [1  <text/plain; us-ascii (7bit)>]
> On Sun, Dec 19, 2010 at 06:35:12PM +0100, David Maus wrote:
> > Org checks the file modification time to determine whether to
> > republish a file or not.  Due to the nature of /sym/links their
> > modification date does not change if the directory entry they are
> > pointing to changes.
>
> Then shouldn't Org-mode check the modification time of the *target*?

Indeed.  Just pushed a patch to master.

Best,
  --David
--
OpenPGP... 0x99ADB83B5A4478E6
Jabber.... dmjena@jabber.org
Email..... dmaus@ictsoc.de

[-- Attachment #1.2: Type: application/pgp-signature, Size: 230 bytes --]

[-- Attachment #2: Type: text/plain, Size: 201 bytes --]

_______________________________________________
Emacs-orgmode mailing list
Please use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode

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

end of thread, other threads:[~2011-01-06 19:28 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-12-11  0:53 Problem publishing symbolic links Aidan Gauland
2010-12-19 17:35 ` David Maus
2010-12-20  1:11   ` Bug?: " Aidan Gauland
2011-01-06 19:26     ` David Maus

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).