From mboxrd@z Thu Jan 1 00:00:00 1970 From: Suvayu Ali Subject: Re: Org sources and PDF files on Worg Date: Thu, 23 May 2013 17:48:53 +0200 Message-ID: <20130523154853.GC20987@kuru.dyndns-at-home.com> References: <20130521181345.GA58552@client199-78.wlan.hu-berlin.de> <20130522150433.GC61443@kenny.local> <87mwrmw2ux.fsf@bzg.ath.cx> <20130523080241.GB642@kenny.local> <87d2siw1h8.fsf@bzg.ath.cx> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Return-path: Received: from eggs.gnu.org ([208.118.235.92]:55592) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UfXlC-0004oy-Jl for emacs-orgmode@gnu.org; Thu, 23 May 2013 11:49:03 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UfXlB-00021l-AN for emacs-orgmode@gnu.org; Thu, 23 May 2013 11:48:58 -0400 Received: from mail-ea0-x229.google.com ([2a00:1450:4013:c01::229]:53397) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UfXlB-00021b-4z for emacs-orgmode@gnu.org; Thu, 23 May 2013 11:48:57 -0400 Received: by mail-ea0-f169.google.com with SMTP id m14so2022360eaj.28 for ; Thu, 23 May 2013 08:48:56 -0700 (PDT) Received: from kuru.dyndns-at-home.com ([2001:610:120:3000:f2de:f1ff:fe37:c76c]) by mx.google.com with ESMTPSA id bn53sm17680215eeb.7.2013.05.23.08.48.54 for (version=TLSv1.2 cipher=RC4-SHA bits=128/128); Thu, 23 May 2013 08:48:55 -0700 (PDT) Content-Disposition: inline In-Reply-To: <87d2siw1h8.fsf@bzg.ath.cx> List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: emacs-orgmode@gnu.org Hi Bastien, On Thu, May 23, 2013 at 10:21:23AM +0200, Bastien wrote: > Viktor Rosenfeld 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.