← Back to team overview

ubuntu-developer-manual team mailing list archive

Re: Proposal for localized screenshots

 

On 01/07/2011 10:24 AM, Kyle Nitzsche wrote:
* lang_pdfs script (which builds localized pdfs) to branch/pull image branches for valid linguas in LINGUAS file
Here's the code that does this. Commented out make command for dev. Using a LINGUAS fail that contains two linguas: test 2. And bogus/trial branches in ~knitzsche space on LP.

If <lingua>-images branch doesn't exist as sibling to trunk, it is branched and exists in up-to-date state. If <lingua>-images branch exists but is *behind* state on LP, it is updated via pull.

"
#!/bin/sh


LINGUAS=$(if test -r ./LINGUAS; then grep -v "^\#" ./LINGUAS; fi);

#make

for lingua in $LINGUAS;
do
    if [ -d ../$lingua-images ]; then
        cd ../$lingua-images
        bzr pull lp:~knitzsche/+junk/$lingua-images
        cd ../trunk
    else
        bzr branch lp:~knitzsche/+junk/$lingua-images ../$lingua-images
    fi;
#>..echo "\nMAKING PDF FOR LANGUAGE: $lingua";
#>..make langpdf LANG=$lingua;
done
exit 0
"

Cheers,
Kyle



Follow ups

References