X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=build_c2d;h=7dc80aa881e5386e80c26b139a5ac6e8578cbfd2;hb=dcce90e77c92202b5fadca48de6fd1cefc41ff79;hp=ae1c7e95e0f7ce5b7a32b2b79878107f391f58c0;hpb=9a63f57f251d39fe0ce27c6d212d8846809c27ad;p=bin.git diff --git a/build_c2d b/build_c2d index ae1c7e9..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 ~/c2d/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