]> git.donarmstrong.com Git - bin.git/commitdiff
backup database when using build_c2d
authorDon Armstrong <don@donarmstrong.com>
Wed, 6 Mar 2013 00:03:31 +0000 (16:03 -0800)
committerDon Armstrong <don@donarmstrong.com>
Wed, 6 Mar 2013 00:03:31 +0000 (16:03 -0800)
add some comments

build_c2d

index ae1c7e95e0f7ce5b7a32b2b79878107f391f58c0..467e6f8295bc78c30bbc3e8351697e0a9bb46797 100755 (executable)
--- 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