From: Don Armstrong Date: Wed, 6 Mar 2013 00:03:31 +0000 (-0800) Subject: backup database when using build_c2d X-Git-Url: https://git.donarmstrong.com/?a=commitdiff_plain;h=fbd2e5e712ddfda55a2abaf190997bff247a2c78;p=bin.git backup database when using build_c2d add some comments --- diff --git a/build_c2d b/build_c2d index ae1c7e9..467e6f8 100755 --- a/build_c2d +++ b/build_c2d @@ -2,6 +2,12 @@ DATE=$(date +%Y%m%d) mkdir ~/c2d/build_results_${DATE} +# update the packages we can build cran2deb update > ~/c2d/build_results_${DATE}/log.txt +# build tehm 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}/ +# 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