]> git.donarmstrong.com Git - bin.git/blob - build_c2d
add common subscriber
[bin.git] / build_c2d
1 #!/bin/bash
2
3 DATE=$(date +%Y%m%d)
4 mkdir ~/c2d/build_results_${DATE}
5 # update the packages we can build
6 cran2deb update > ~/c2d/build_results_${DATE}/log.txt 2>&1
7 # build tehm
8 cran2deb autobuild >> ~/c2d/build_results_${DATE}/log.txt 2>&1
9 # move them to a folder so we can sign and upload them
10 find ~/c2d/cache/results/debian-amd64 -type f -print0 | \
11     xargs -0r mv -t ~/c2d/build_results_${DATE}/
12 # backup database
13 cp ~/c2d/cache/cran2deb.db ~/c2d/cache/cran2deb_${DATE}.db