git.iko.soy/typeable/cabal2nix
on master help sign in
doc: fix generation of hackage.csv
commit589079a1b036125d9ebf76f5c8056b1e21b86b23 authorPeter Simons <simons@cryp.to> dateSun 18 Sep 2016, 22:48 (10 years ago) parent78b650c
1 file changed+4−2
doc/GNUmakefile+4−2
doc/GNUmakefile+4−2
@@ -45,7 +45,8 @@ hackage-version-boxplot.pdf : analyze-hackage.r hackage.csv
4545 Rscript $<
4646
4747hackage.csv:
48− ( cd ../hackage2nix/hackage; \
48+ { set -eu -o pipefail; \
49+ cd ../hackage; \
4950 echo package,version; \
5051 for n in *; do \
5152 test -d $$n || continue; \
@@ -53,7 +54,8 @@ hackage.csv:
5354 echo $$n,$$(basename $$v); \
5455 done; \
5556 done \
56− ) >$@
57+ } >$@.tmp
58+ mv $@.tmp $@
5759
5860clean:
5961 @rm -f *.aux *.html *.log *.out *.pdf *.toc