1
by Chad Miller
Checkin. |
1 |
#!/usr/bin/make -f
|
2 |
||
4
by Chad MILLER
Put condition evaluator function in utils module. Also simplify it. |
3 |
VERSIONS ?= $(shell wget -q -O - "http://omahaproxy.appspot.com/all?os=linux" |awk -F, '/^linux/ { if ($$2!="stable") {print $$4} else {print $$3} }') |
4 |
$(warning $(VERSIONS)) |
|
5 |
||
6 |
all: upstream start-reaper-timer pump reap |
|
5
by Chad MILLER
. |
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 |
|
1
by Chad Miller
Checkin. |
9 |
|
10 |
lint: |
|
11 |
pylint --disable=C0301,C0103,E1120,W0621,C0321,W0142 --reports=n --include-ids=y process-and-export fileformats |
|
12 |
||
2
by Chad Miller
Fix exporting gettext placeholders. |
13 |
|
1
by Chad Miller
Checkin. |
14 |
start-reaper-timer: upstream |
15 |
@touch -d "3 seconds ago" upstream/reaper-mark |
|
16 |
||
17 |
reap: |
|
4
by Chad MILLER
Put condition evaluator function in utils module. Also simplify it. |
18 |
@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 "{}/.." \; |
1
by Chad Miller
Checkin. |
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 "{}" \; |
20 |
||
4
by Chad MILLER
Put condition evaluator function in utils module. Also simplify it. |
21 |
pump: $(addprefix upstream/cr-,$(VERSIONS)) upstream/lp |
5
by Chad MILLER
. |
22 |
@echo Want $(VERSIONS). |
2
by Chad Miller
Fix exporting gettext placeholders. |
23 |
for x in $^; do test ! -d $$x || touch $$x/reapable-tag; done |
4
by Chad MILLER
Put condition evaluator function in utils module. Also simplify it. |
24 |
mkdir -p results/cr results/lp |
2
by Chad Miller
Fix exporting gettext placeholders. |
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 |
1
by Chad Miller
Checkin. |
26 |
|
27 |
upstream: |
|
28 |
@mkdir $@ |
|
29 |
||
30 |
results: |
|
31 |
@mkdir $@ |
|
32 |
||
2
by Chad Miller
Fix exporting gettext placeholders. |
33 |
results/lp: results |
34 |
bzr branch http://bazaar.launchpad.net/~chromium-team/chromium-browser/chromium-translations.head $@ |
|
35 |
rm -r $@/*/* |
|
1
by Chad Miller
Checkin. |
36 |
|
5
by Chad MILLER
. |
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 |
||
1
by Chad Miller
Checkin. |
43 |
upstream/lp: upstream |
2
by Chad Miller
Fix exporting gettext placeholders. |
44 |
test -d $@ || bzr branch http://bazaar.launchpad.net/~chromium-team/chromium-browser/chromium-translations-exports.head $@ |
4
by Chad MILLER
Put condition evaluator function in utils module. Also simplify it. |
45 |
-cd $@ && bzr pull http://bazaar.launchpad.net/~chromium-team/chromium-browser/chromium-translations-exports.head |
1
by Chad Miller
Checkin. |
46 |
|
47 |
upstream/cr-%: upstream/tar-%.txz |
|
48 |
@t=$$(mktemp -d); tar xvf "$<" --strip-components=1 -C $$t --wildcards \*.grd \*.xtb \*.grdp \*/policy_templates.json && mv $$t "$@"; |
|
49 |
||
50 |
upstream/tar-%.txz: |
|
4
by Chad MILLER
Put condition evaluator function in utils module. Also simplify it. |
51 |
test -f "../chromium-browser_$*.orig.tar.xz" && ln -v "../chromium-browser_$*.orig.tar.xz" "$@" || wget -nv --progress=dot:mega -O "$@" https://commondatastorage.googleapis.com/chromium-browser-official/chromium-$*.tar.xz || { rm -f "$@"; echo "Inspect https://commondatastorage.googleapis.com/chromium-browser-official/?prefix=chromium-$* and http://omahaproxy.appspot.com/all?os=linux"; exit 1; } |
1
by Chad Miller
Checkin. |
52 |
|
4
by Chad MILLER
Put condition evaluator function in utils module. Also simplify it. |
53 |
.PHONY: all pump clean start-reaper-timer reap |
1
by Chad Miller
Checkin. |
54 |
|
55 |
.INTERMEDIATE: upstream/tar-%.txz |
|
56 |
||
57 |
.NOTPARALLEL: |