How to modify a file with the build recipe without 'run' command?

Asked by Matthieu Baerts

Hello,

I want to create a daily-build repository for the Cairo-Dock project. To compile the latest revision of the plug-ins part, it needs the latest revision of the Core/API part.
So if I want to create a daily-build I want to be sure that the plug-ins are compiled with the latest revision of the core and not the previous one.
I wanted to use this command: run sed -i "s/2\.2\.1/2.2.1~0beta1~`date +%Y%m%d`-0ubuntu1~ppa0/g" debian/control
But the bzr-builder instruction "run" is not permitted here. :)

Do you have any idea about that?

Question information

Language:
English Edit question
Status:
Solved
For:
bzr-builder Edit question
Assignee:
No assignee Edit question
Solved by:
James Westby
Solved:
Last query:
Last reply:
Revision history for this message
Best James Westby (james-w) said :
#1

Hi,

As the run instruction isn't permitted on LP you will have to do this in debian/rules.

Thanks,

James

Revision history for this message
Matthieu Baerts (matttbe) said :
#2

Thank you! I forgot this way! :)

But if we can do that in debian/rules, why can't we do that with the script of bzr-builder?

Revision history for this message
James Westby (james-w) said :
#3

On Mon, 24 Jan 2011 20:45:59 -0000, Matthieu Baerts <email address hidden> wrote:
> Question #141447 on bzr-builder changed:
> https://answers.launchpad.net/bzr-builder/+question/141447
>
> Status: Answered => Solved
>
> Matthieu Baerts confirmed that the question is solved:
> Thank you! I forgot this way! :)
>
> But if we can do that in debian/rules, why can't we do that with the
> script of bzr-builder?

That's Launchpad's policy. It has some implications for the internal
workings, as well as what the web UI is able to do.

Thanks,

James