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

« back to all changes in this revision

Viewing changes to run-me

  • Committer: Chad MILLER
  • Date: 2015-10-19 18:42:18 UTC
  • Revision ID: chad.miller@canonical.com-20151019184218-benco7vjulfva1lc
.

Show diffs side-by-side

added added

removed removed

Lines of Context:
4
4
$(warning $(VERSIONS))
5
5
 
6
6
all: upstream start-reaper-timer pump reap
7
 
        set -x; for v in $$(ls -1d upstream/cr* |cut -d/ -f2); do diff --unified --show-function-line== --recursive --minimal upstream/$$v results/cr >launchpad-translations-$$v; done
 
7
        rm -f launchpad-translations-*.patch
 
8
        set -x; for v in $$(ls -1d upstream/cr* |cut -d/ -f2); do diff --unified --show-function-line="=" --recursive --minimal --unidirectional-new-file upstream/$$v results/cr |sed -e 's,^--- upstream/,--- ,' -e 's,+++ results/,+++ ,' >launchpad-translations-$$v.patch; done
8
9
 
9
10
lint:
10
11
        pylint --disable=C0301,C0103,E1120,W0621,C0321,W0142 --reports=n --include-ids=y process-and-export fileformats
18
19
        @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 "{}" \;
19
20
 
20
21
pump: $(addprefix upstream/cr-,$(VERSIONS)) upstream/lp
21
 
        echo Want $(VERSIONS).
 
22
        @echo Want $(VERSIONS).
22
23
        for x in $^; do test ! -d $$x || touch $$x/reapable-tag; done
23
24
        mkdir -p results/cr results/lp
24
25
        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
33
34
        bzr branch http://bazaar.launchpad.net/~chromium-team/chromium-browser/chromium-translations.head $@
34
35
        rm -r $@/*/*
35
36
 
 
37
results/cr: results
 
38
        bzr branch lp:chromium-browser/translations $@
 
39
#       find $@ -type f -name \*.po  -delete
 
40
#       find $@ -type f -name \*.pot -delete
 
41
#       rmdir $@/*
 
42
 
36
43
upstream/lp: upstream
37
44
        test -d $@ || bzr branch http://bazaar.launchpad.net/~chromium-team/chromium-browser/chromium-translations-exports.head $@
38
45
        -cd $@ && bzr pull http://bazaar.launchpad.net/~chromium-team/chromium-browser/chromium-translations-exports.head