← Back to team overview

ubuntu-developer-manual team mailing list archive

Re: screenshots moved into sibling dir/branch; images-draft branch created; ADD SCREENSHOTS

 

Hi,
See  bottom.

On 01/11/2011 09:19 AM, Kyle Nitzsche wrote:
On 01/10/2011 10:09 PM, Kevin Godby wrote:
I've modified the \screenshot command to do the following:

1. Add the screenshot information to the screenshots.log file.  This
means we can use the \screenshot command instead of the
\screenshotTODO command.
2. Try to find the file in the ../images-LANGUAGECODE directory first.
If it's there, we'll use it.  Otherwise:
3. Try to find the file in the ../images-draft directory next. If it's
there, we'll use it and add DRAFT to the caption.  Otherwise:
4. We'll display the MISSING SCREENSHOT box that we all know and love.

--Kevin
Thanks Kevin.

So with this, WRITERS need to use two branches:
* trunk
* images-draft

Like this:

mkdir 11jan
cd 11jan/
bzr branch lp:ubuntu-developer-manual
bzr branch lp:~ubuntu-developer-manual/ubuntu-developer-manual/images-draft
cd ubuntu-developer-manual/
make && evince main.pd

Cheers,
Kyle

_______________________________________________
Mailing list: https://launchpad.net/~ubuntu-developer-manual
Post to     : ubuntu-developer-manual@xxxxxxxxxxxxxxxxxxx
Unsubscribe : https://launchpad.net/~ubuntu-developer-manual
More help   : https://help.launchpad.net/ListHelp


I've updated the lang_pdfs script (used to build all localized linguas in LINGUAS file) to support this as follows:

* simply run ./lang_pdfs to build a pdfs for each lingua in LINGUAS. This will bzr branch/pull for each images-<lingua> dir and for images-draft.
    * Such builds will use translations from current po files in po/
* They will use the best found image: 1) from images-<lingua>, if present 2) from images-draft

* pass "nobzr" as a script argument to NOT update any bzr image branches, like this './lang_pdfs nobzr' This way you can speed up multiple builds when you don't really care if there are new images in bzr branches

 * the bzr operations are bzr branch or pull:
  * if the images-<lingua>|draft branch exists, bzr pull it
  * if the images-<lingua>|draft branch does not exist, bzr branch it

Also updated Makefile to use new image fall back paths with lang_pdfs script and with make langpdf LANG=<lingua>

Cheers,
Kyle






Follow ups

References