From 36981befe09d0ee273a9310f4f17dd22f79aa383 Mon Sep 17 00:00:00 2001 From: Chris Koeritz Date: Thu, 21 Mar 2013 19:07:20 -0400 Subject: [PATCH] working on a way to get the source forge copy of feisty meow to automatically update. --- database/configuration/cron/swim_upstream.crontab | 14 ++++++++++++++ scripts/rev_control/push_repo_upstream.sh | 4 ++++ 2 files changed, 18 insertions(+) create mode 100644 database/configuration/cron/swim_upstream.crontab diff --git a/database/configuration/cron/swim_upstream.crontab b/database/configuration/cron/swim_upstream.crontab new file mode 100644 index 00000000..c4b9b9c1 --- /dev/null +++ b/database/configuration/cron/swim_upstream.crontab @@ -0,0 +1,14 @@ + +SHELL=/bin/bash + +# this cron job updates the feisty meow repository on source forge based on +# the real one at feistymeow.org. + +# m h dom mon dow command + +USER=fred + +# update the source code to the latest, every day at 3am or so. +14 */2 * * * (export LIGHTWEIGHT_INIT=true; source $HOME/feisty_meow/scripts/core/launch_feisty_meow.sh; bash $HOME/feisty_meow/scripts/rev_control/push_repo_upstream.sh $HOME/repos/sf-feistymeow-trunk ) &>>/tmp/zz_nechung_fortune_$USER.log + + diff --git a/scripts/rev_control/push_repo_upstream.sh b/scripts/rev_control/push_repo_upstream.sh index 6210277e..13e8ba0e 100755 --- a/scripts/rev_control/push_repo_upstream.sh +++ b/scripts/rev_control/push_repo_upstream.sh @@ -14,6 +14,10 @@ dir="$1"; shift if [ -z "$dir" ]; then dir=. fi +certfile="$1"; shift +if [ -z "$certfile" ]; then + certfile=$HOME/.ssh/id_dsa_sourceforge +fi pushd "$dir" git fetch upstream -- 2.34.1