WWW_UPLOAD_URI_STATIC=$(WWW_UPLOAD_URI)/_static
+BIGMESS_OPTS = -c neurodebian_repo.cfg
+BIGMESS_CMD = PYTHONPATH=.:../bigmess:$(PYTHONPATH) ../bigmess/bin/bigmess
+BIGMESS = $(BIGMESS_CMD) $(BIGMESS_OPTS)
+
# Lentghy one due to updatedb
all: updatedb upload-website mirmon
# Quick one -- just rebuilds html if new changes and adjusts the status of the mirrors
source: source-stamp
-source-stamp: build/db.db
- PYTHONPATH=.:$(PYTHONPATH) python neurodebian/dde.py \
- --cfg neurodebian.cfg \
- --db build/db.db \
- --outdir build/src \
- --pkgaddenum pkgs \
- --extracts /home/www/neuro.debian.net/www/debian/extracts \
- commandisirrelevant
- rm -f html-stamp
+source-stamp:
+ mkdir -p build/src/pkgs/
+ mkdir -p build/src/lists/
+ mkdir -p build/src/pkglists/
+ $(BIGMESS) mkpkgs -d build/src/pkgs/
+ $(BIGMESS) mkaptcfgs -d build/src/lists/
+ $(BIGMESS) mkrepocfg > build/src/sources_lists
+ $(BIGMESS) mkpkgtocs -d build/src/pkglists > build/src/pkgs.rst
touch $@
-removecache:
- -rm -rf build/cache
-
-removedb:
- -rm -f build/db.db
-
-
-updatedb: removedb removecache build/db.db
-
-
-build/db.db:
- mkdir -p build
- PYTHONPATH=.:$(PYTHONPATH) python neurodebian/dde.py \
- --cfg neurodebian.cfg \
- --db build/db.db \
- updatedb
- -rm -f source-stamp
-
+updatedb:
upload-website: html
rsync -rvzlhp --delete \
mirmon:
# update and generate mirrors report
[ -x /usr/bin/mirmon ] && mirmon -q -get update -c mirmon-neurodebian.conf 2>&1 \
- | grep -v 'date: invalid date.*DOCTYPE'
+ | grep -v 'date: invalid date.*DOCTYPE' || :
# [ -x $(WWW_UPLOAD_URI_STATIC)/mirrors-check.ihtml ] &&
# everything must be in place!
cat $(WWW_UPLOAD_URI_STATIC)/{index-header,mirrors-status,index-trailer}.ihtml \