aboutsummaryrefslogtreecommitdiffstats
path: root/weeklyjob.sh
diff options
context:
space:
mode:
Diffstat (limited to 'weeklyjob.sh')
-rwxr-xr-xweeklyjob.sh30
1 files changed, 0 insertions, 30 deletions
diff --git a/weeklyjob.sh b/weeklyjob.sh
deleted file mode 100755
index 94598a2..0000000
--- a/weeklyjob.sh
+++ /dev/null
@@ -1,30 +0,0 @@
-#!/bin/bash
-
-# Cronjob which can be run weekly to run the upgrade helper script.
-# Add the job in /etc/crontab like below.
-#
-# It will execute weekly at the same hour (8 AM).
-#
-# 00 8 * * 6 auh /home/auh/bin/weeklyjob.sh
-
-# Re-assign these to match your setup!
-auh_dir=~/auto-upgrade-helper
-poky_dir=~/poky
-build_dir=~/build-tmp-auh-upgrades
-sstate_dir=~/sstate-cache
-
-pushd $poky_dir
-
-# Base the upgrades on poky master
-git fetch origin
-git checkout -B tmp-auh-upgrades origin/master
-
-source $poky_dir/oe-init-build-env $build_dir
-$auh_dir/upgrade-helper.py -e all
-
-# clean up to avoid the disk filling up
-rm -rf $build_dir/tmp/
-rm -rf $build_dir/workspace/sources/*
-find $sstate_dir -atime +10 -delete
-
-popd