#!/bin/sh

#to update the main foswiki package
#reprepro --keepunusednewfiles  --keepunreferencedfiles --component main --priority normal  --section web includedeb stable /home/sven/src/debian/uploaded/foswiki_1.0.0-1_all.deb 

#to remove the old foswiki package, to replace it with a better one of the same version
#reprepro remove stable foswiki





#reprepro --keepunusednewfiles --keepunreferencedfiles  --ignore=wrongdistribution   include stable /tmp/build_deb/*.changes

reprepro  --keepunusednewfiles --keepunreferencedfiles --component main --priority normal  --section web includedeb stable ../EPM/output-Debian/foswiki-*.deb

#pull 'arch:all' packages into i386 too
reprepro --keepunusednewfiles  --keepunreferencedfiles -V pull

#list all packages in rss stye order
reprepro list stable | grep i386 | sort -nr -k 3 > FoswikiPackagesList.txt
wc FoswikiPackagesList.txt >> FoswikiPackagesList.txt

#add the log files in case they are useful for people debugging missing plugins
cp ../*.log .

#
rsync -av --stats --progress -e ssh --delete . distributedinformation@distributedinformation.com:/home/distributedinformation/www/Foswiki_debian/
