[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: multiple edits on one file?
From: |
Frank Smith |
Subject: |
Re: multiple edits on one file? |
Date: |
Wed, 19 Jan 2005 16:45:19 -0600 |
--On Wednesday, January 19, 2005 16:04:09 -0600 Don Harper <duck@duckland.org>
wrote:
> Based on various classes being defined, I want to edit one file.
>
> Now, given that I have three classes defined in a module
> [HaveGold,HaveBronze, and HaveGranite], I want to do something like
> this:
>
> any::
> { /tmp/file
> DeleteLinesContaining "/tmp"
> AppendIfNoSuchLine "LABEL=/local"
> DeleteLinesContaining "/gold"
> DeleteLinesContaining "/ "
> DeleteLinesContaining "/bronze"
> DeleteLinesContaining "/granite"
> AppendIfNoSuchLine "LABEL=/v-$(gold)"
> }
>
> HaveBronze::
> { /tmp/file
> AppendIfNoSuchLine "LABEL=/v-$(bronze)"
> }
>
> HaveGranite::
> { /tmp/file
> AppendIfNoSuchLine "LABEL=/v-$(granite)"
> }
>
> Now, the any:: section runs, just like it should. But, the other two
> never run, even if one or both of the classes are defined. The classes
> get defined from a module defined, and they are listed in
> AddInstallable. Any clues?
Perhaps the locks are preventing the subsequent edits. If
you run with debug enabled you would see a message to that
effect if that is what's happening here (something about
ifelapsed I believe).
Frank
>
> Thanks!
>
> Don
>
> --
> Don Harper <duck@duckland.org>
> duckland.org
--
Frank Smith fsmith@hoovers.com
Sr. Systems Administrator Voice: 512-374-4673
Hoover's Online Fax: 512-374-4501