~chromium-team/chromium-browser/translations-pump

« back to all changes in this revision

Viewing changes to run-me

  • Committer: Chad Miller
  • Date: 2013-08-16 14:10:56 UTC
  • Revision ID: chad.miller@canonical.com-20130816141056-v51xndsustwcjg6i
Fix exporting gettext placeholders.

Move testing to top of main run function.

Make getting upstream sources a seperate step than running the exporter.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
#!/usr/bin/make -f
2
2
 
3
 
all: upstream start-reaper-timer results work reap
 
3
all: upstream start-reaper-timer results/cr results/lp work reap
4
4
 
5
5
lint:
6
6
        pylint --disable=C0301,C0103,E1120,W0621,C0321,W0142 --reports=n --include-ids=y process-and-export fileformats
7
7
 
 
8
refresh: $(shell wget -q -O - "http://omahaproxy.appspot.com/all?os=linux" |awk -F, '/^linux/ { if ($$2!="stable") {print $$4} else {print $$3} }' |sed -e s,^,upstream/cr-, ) upstream/lp
 
9
 
8
10
start-reaper-timer: upstream
9
11
        @touch -d "3 seconds ago" upstream/reaper-mark
10
12
 
12
14
        @find upstream -maxdepth 2 -name reapable-tag -not -newer $(CURDIR)/upstream/reaper-mark -exec echo This {}/.. looks like a dir from a previous run that isn\'t needed any more. \; #-ok rm -rf "{}/.." \;
13
15
        @find upstream -maxdepth 1 -name tar-\*z -not -newer $(CURDIR)/upstream/reaper-mark -exec echo This {} looks like a file from a previous run that isn\'t needed any more. \; #-ok rm -rf "{}" \;
14
16
 
15
 
work: $(shell wget -q -O - "http://omahaproxy.appspot.com/all?os=linux" |awk -F, '/^linux/ { if ($$2!="stable") {print $$4} else {print $$3} }' |sed -e s,^,upstream/cr-, ) upstream/lp
16
 
        for x in $^; do touch $$x/reapable-tag; done
17
 
        rm -f run.log; ./process-and-export -v $(foreach srcdir,$^,--chromium_source=$(srcdir)) --chromium_destination=results/cr --launchpad_source=chromium-translations-exports.head --launchpad_destination=chromium-translations.head
 
17
work: $(wildcard upstream/* )
 
18
        for x in $^; do test ! -d $$x || touch $$x/reapable-tag; done
 
19
        rm -f run.log; ./process-and-export -v $(foreach srcdir,$^,--chromium_source=$(srcdir)) --chromium_destination=results/cr --launchpad_source=chromium-translations-exports.head --launchpad_destination=results/lp
18
20
 
19
21
upstream:
20
22
        @mkdir $@
22
24
results:
23
25
        @mkdir $@
24
26
 
25
 
results/lp:
26
 
        @mkdir $@
 
27
results/lp: results
 
28
        bzr branch http://bazaar.launchpad.net/~chromium-team/chromium-browser/chromium-translations.head $@
 
29
        rm -r $@/*/*
27
30
 
28
31
upstream/lp: upstream
29
 
        -mkdir -p $@
 
32
        test -d $@ || bzr branch http://bazaar.launchpad.net/~chromium-team/chromium-browser/chromium-translations-exports.head $@
30
33
        cd $@ && bzr pull http://bazaar.launchpad.net/~chromium-team/chromium-browser/chromium-translations-exports.head
31
 
        #test   -d $@ || bzr export $@     http://bazaar.launchpad.net/~chromium-team/chromium-browser/chromium-translations-exports.head
32
 
        #test ! -d $@ || cd $@ && bzr pull http://bazaar.launchpad.net/~chromium-team/chromium-browser/chromium-translations-exports.head
33
34
 
34
35
upstream/cr-%: upstream/tar-%.txz
35
36
        @t=$$(mktemp -d); tar xvf "$<" --strip-components=1 -C $$t --wildcards \*.grd \*.xtb \*.grdp \*/policy_templates.json && mv $$t "$@";