[Pkg-ocaml-maint-commits] r6462 - in /trunk/tools/build-dep-graph: ./ Makefile update_src_list.sh
gildor at users.alioth.debian.org
gildor at users.alioth.debian.org
Wed May 19 22:13:53 UTC 2010
Author: gildor
Date: Wed May 19 22:13:49 2010
New Revision: 6462
URL: http://svn.debian.org/wsvn/?sc=1&rev=6462
Log:
Try save bandwidth by keeping intermediate files and clean them
Modified:
trunk/tools/build-dep-graph/ (props changed)
trunk/tools/build-dep-graph/Makefile
trunk/tools/build-dep-graph/update_src_list.sh
Propchange: trunk/tools/build-dep-graph/
------------------------------------------------------------------------------
--- svn:ignore (original)
+++ svn:ignore Wed May 19 22:13:49 2010
@@ -1,4 +1,7 @@
contrib_sources
main_sources
non-free_sources
+contrib_sources.bz2
+main_sources.bz2
+non-free_sources.bz2
all_sources
Modified: trunk/tools/build-dep-graph/Makefile
URL: http://svn.debian.org/wsvn/trunk/tools/build-dep-graph/Makefile?rev=6462&op=diff
==============================================================================
--- trunk/tools/build-dep-graph/Makefile (original)
+++ trunk/tools/build-dep-graph/Makefile Wed May 19 22:13:49 2010
@@ -6,13 +6,19 @@
ocaml_src_pkgs.txt \
build_order.txt
+TMP_STUFF = \
+ all_sources \
+ contrib_sources \
+ main_sources \
+ non-free_sources
+
all: ocaml_build_deps.ps ocaml_build_deps.png ocaml_src_pkgs.html build_order.txt
# to be used on alioth for updating graphs and lists linked by pkg-ocaml-maint home page
-install: download all
+install: all
cp $(INSTALL_STUFF) ~/pkg-ocaml-maint/htdocs/
-download:
+ocaml_src_pkgs.txt:
./update_src_list.sh
ocaml_src_pkgs.html: ocaml_src_pkgs.txt
@@ -29,9 +35,11 @@
build_order.txt: ocaml_build_deps.dot
./slice.ml ocaml $< > $@
-ocaml_src_pkgs.txt: download
-
%.png: %.dot
dot -Tpng $< > $@
%.ps: %.dot
dot -Tps $< > $@
+
+clean:
+ -$(RM) $(INSTALL_STUFF) $(TMP_STUFF)
+
Modified: trunk/tools/build-dep-graph/update_src_list.sh
URL: http://svn.debian.org/wsvn/trunk/tools/build-dep-graph/update_src_list.sh?rev=6462&op=diff
==============================================================================
--- trunk/tools/build-dep-graph/update_src_list.sh (original)
+++ trunk/tools/build-dep-graph/update_src_list.sh Wed May 19 22:13:49 2010
@@ -1,7 +1,7 @@
#!/bin/bash
set -e
-#set -x
+set -x
mirror="http://ftp.debian.org"
suite="unstable"
@@ -12,8 +12,7 @@
for section in $sections ; do
wget -q -N -O ${section}_sources.bz2 \
$mirror/debian/dists/$suite/$section/source/Sources.bz2
- rm -f ${section}_sources
- bunzip2 ${section}_sources.bz2
+ bunzip2 -c ${section}_sources.bz2 > ${section}_sources
done
(for section in $sections ; do cat ${section}_sources ; done) > all_sources
}
More information about the Pkg-ocaml-maint-commits
mailing list