X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=build_c2d;h=7dc80aa881e5386e80c26b139a5ac6e8578cbfd2;hb=1886c7247cb16ed68a78cd5550b152689a465999;hp=d4c216eb0cd05a42b591868ca3d0d3f56c5b8631;hpb=8d68fdd8fc5b373f4340a1e331a79bbefc60c30d;p=bin.git diff --git a/build_c2d b/build_c2d index d4c216e..7dc80aa 100755 --- a/build_c2d +++ b/build_c2d @@ -2,6 +2,12 @@ DATE=$(date +%Y%m%d) mkdir ~/c2d/build_results_${DATE} -cran2deb update > ~/c2d/build_results_${DATE}/log.txt -cran2deb autobuild >> ~/c2d/build_results_${DATE}/log.txt -find ~/cran2deb/cache/results/debian-amd64 -type f -print0 |xargs -0r mv -t ~/c2d/build_results_${DATE}/ +# update the packages we can build +cran2deb update > ~/c2d/build_results_${DATE}/log.txt 2>&1 +# build tehm +cran2deb autobuild >> ~/c2d/build_results_${DATE}/log.txt 2>&1 +# move them to a folder so we can sign and upload them +find ~/c2d/cache/results/debian-amd64 -type f -print0 | \ + xargs -0r mv -t ~/c2d/build_results_${DATE}/ +# backup database +cp ~/c2d/cache/cran2deb.db ~/c2d/cache/cran2deb_${DATE}.db