264 |
-e 'print "\n"."*"x70 ."\n"; s///; print; print "*"x70 ."\n"'; \ |
-e 'print "\n"."*"x70 ."\n"; s///; print; print "*"x70 ."\n"'; \ |
265 |
) |
) |
266 |
|
|
267 |
|
|
268 |
|
## ---------------- ## |
269 |
|
## Updating files. ## |
270 |
|
## ---------------- ## |
271 |
|
|
272 |
WGET = wget |
WGET = wget |
273 |
ftp-gnu = ftp://ftp.gnu.org/gnu |
ftp-gnu = ftp://ftp.gnu.org/gnu |
274 |
|
|
275 |
# Use mv, if you don't have/want move-if-change. |
# Use mv, if you don't have/want move-if-change. |
276 |
move_if_change ?= move-if-change |
move_if_change ?= move-if-change |
277 |
|
|
278 |
|
|
279 |
|
# --------------------- # |
280 |
|
# Updating everything. # |
281 |
|
# --------------------- # |
282 |
|
|
283 |
|
.PHONY: update |
284 |
|
local_updates ?= wget-update cvs-update po-update |
285 |
|
update: $(local_updates) |
286 |
|
|
287 |
|
|
288 |
|
# ------------------- # |
289 |
|
# Updating PO files. # |
290 |
|
# ------------------- # |
291 |
|
|
292 |
|
po_repo = http://www.iro.umontreal.ca/contrib/po/maint/$(PACKAGE) |
293 |
|
.PHONY: do-po-update po-update |
294 |
|
do-po-update: |
295 |
|
tmppo=/tmp/$(PACKAGE)-$(VERSION)-po &&\ |
296 |
|
rm -rf $$tmppo && \ |
297 |
|
mkdir $$tmppo && \ |
298 |
|
(cd $$tmppo && $(WGET) -r -l1 -nd --no-parent -A '*.po' $(po_repo)) &&\ |
299 |
|
cp $$tmppo/*.po po |
300 |
|
cd po && $(MAKE) update-po |
301 |
|
$(MAKE) po-check |
302 |
|
|
303 |
|
po-update: |
304 |
|
if test -d "po"; then \ |
305 |
|
$(MAKE) do-po-update; \ |
306 |
|
fi |
307 |
|
|
308 |
|
# -------------------------- # |
309 |
|
# Updating GNU build tools. # |
310 |
|
# -------------------------- # |
311 |
|
|
312 |
# The following pseudo table associates a local directory and a URL |
# The following pseudo table associates a local directory and a URL |
313 |
# with each of the files that belongs to some other package and is |
# with each of the files that belongs to some other package and is |
314 |
# regularly updated from the specified URL. |
# regularly updated from the specified URL. |
341 |
automake_repo=:pserver:anoncvs:anoncvs@sources.redhat.com:/cvs/automake |
automake_repo=:pserver:anoncvs:anoncvs@sources.redhat.com:/cvs/automake |
342 |
.PHONY: wget-update |
.PHONY: wget-update |
343 |
wget-update: $(get-targets) |
wget-update: $(get-targets) |
344 |
|
|
345 |
|
.PHONY: cvs-update |
346 |
|
cvs-update: |
347 |
for f in $(cvs_files); do \ |
for f in $(cvs_files); do \ |
348 |
test -f $$f || { echo "*** skipping $$f" 1>&2; continue; }; \ |
test -f $$f || { echo "*** skipping $$f" 1>&2; continue; }; \ |
349 |
file=$$(basename $$f); \ |
file=$$(basename $$f); \ |