emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Suvayu Ali <fatkasuvayu+linux@gmail.com>
To: emacs-orgmode@gnu.org
Subject: Re: Org sources and PDF files on Worg
Date: Thu, 23 May 2013 17:48:53 +0200	[thread overview]
Message-ID: <20130523154853.GC20987@kuru.dyndns-at-home.com> (raw)
In-Reply-To: <87d2siw1h8.fsf@bzg.ath.cx>

Hi Bastien,

On Thu, May 23, 2013 at 10:21:23AM +0200, Bastien wrote:
> Viktor Rosenfeld <listuser36@gmail.com> writes:
> 
> > However, the old version of the tutorial still shows at the old address.
> > I moved the file in the worg git repository from org-tutorials/ to
> > exporters/ but now there are two separate HTML copies. Do I have to do
> > something else to explicitly delete the old version?
> 
> Er, this is a strong (and quite stupid) limitation of the publishing
> engine: it does not delete files that exist from a previous publication.
> 
> I have absolutely no idea for a clever mechanism that would find the
> files to delete.

I believe you can use git for this.  Try

  $ git clean -n -x

to see the files that will be removed.  If you are happy with it, run

  $ git clean -f -x

Please note the subtle difference between -x and -X.  -x cleans *all*
untracked files, whereas -X cleans only files explicitly ignored by
.gitignore.  I would advise to put the published files as ignored:

*.html
*.html~

Then you can safely run

  $ git clean -f -X

and potentially keep untracked manually created files
(e.g. .gitattributes).  This could then be put in the post-commit hook
that publishes Worg.

Hope this helps,

-- 
Suvayu

Open source is the future. It sets us free.

  reply	other threads:[~2013-05-23 15:49 UTC|newest]

Thread overview: 17+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-05-21 18:13 Org sources and PDF files on Worg Viktor Rosenfeld
2013-05-21 21:37 ` Jay Kerns
2013-05-22  7:04   ` Bastien
2013-05-22 13:03     ` Jay Kerns
2013-05-22 15:04   ` Viktor Rosenfeld
2013-05-23  7:51     ` Bastien
2013-05-23  8:02       ` Viktor Rosenfeld
2013-05-23  8:21         ` Bastien
2013-05-23 15:48           ` Suvayu Ali [this message]
2013-05-23 17:54             ` Bastien
2013-05-23 18:09               ` Suvayu Ali
2013-05-24  0:46               ` Rasmus
2013-05-24 17:31                 ` Bastien
2013-05-23 17:06           ` Viktor Rosenfeld
2013-05-23 17:52             ` Bastien
2013-05-23 18:07               ` Viktor Rosenfeld
2013-05-23  7:57     ` Viktor Rosenfeld

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.orgmode.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20130523154853.GC20987@kuru.dyndns-at-home.com \
    --to=fatkasuvayu+linux@gmail.com \
    --cc=emacs-orgmode@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).