From fbd2e5e712ddfda55a2abaf190997bff247a2c78 Mon Sep 17 00:00:00 2001 From: Don Armstrong Date: Tue, 5 Mar 2013 16:03:31 -0800 Subject: [PATCH] backup database when using build_c2d add some comments --- build_c2d | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) 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 -- 2.39.5