]> git.donarmstrong.com Git - bin.git/blobdiff - build_c2d
add reset usb bus command
[bin.git] / build_c2d
index ae1c7e95e0f7ce5b7a32b2b79878107f391f58c0..7dc80aa881e5386e80c26b139a5ac6e8578cbfd2 100755 (executable)
--- 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