ubuntu-developer-manual team mailing list archive
-
ubuntu-developer-manual team
-
Mailing list archive
-
Message #00157
Re: Proposal for localized screenshots
On 01/07/2011 12:27 PM, Kyle Nitzsche wrote:
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.
Even better. I've pushed two testX-images branch to ubuntu-developer-manual
(test1-images and test2-images), set the script to use real paths, and use pwd.
So I think this proof-of-concept is in place:
#!/bin/sh
LINGUAS=$(if test -r ./LINGUAS; then grep -v "^\#" ./LINGUAS; fi);
#make
for lingua in $LINGUAS;
do
if [ -d ../$lingua-images ]; then
mydir=`pwd`
cd ../$lingua-images
bzr pull lp:~ubuntu-developer-manual/ubuntu-developer-manual/$lingua-images
cd $mydir
else
bzr branch
lp:~ubuntu-developer-manual/ubuntu-developer-manual/$lingua-images ../$lingua-images
fi;
#>..echo "\nMAKING PDF FOR LANGUAGE: $lingua";
#>..make langpdf LANG=$lingua;
done
exit 0
References