From: Chris Koeritz Date: Thu, 21 Mar 2013 23:07:20 +0000 (-0400) Subject: working on a way to get the source forge copy of feisty meow to X-Git-Tag: 2.140.90~1047 X-Git-Url: https://feistymeow.org/gitweb/?a=commitdiff_plain;h=36981befe09d0ee273a9310f4f17dd22f79aa383;p=feisty_meow.git working on a way to get the source forge copy of feisty meow to automatically update. --- 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