From: Nigel Metheringham Date: Tue, 27 May 2014 08:20:59 +0000 (+0100) Subject: Added other utility scripts X-Git-Url: https://git.exim.org/mirror-monitor.git/commitdiff_plain/f8162a7a15094c9ba74699ac8341b074237050de?ds=sidebyside Added other utility scripts --- diff --git a/bin/check_update_website.sh b/bin/check_update_website.sh new file mode 100755 index 0000000..ef2514c --- /dev/null +++ b/bin/check_update_website.sh @@ -0,0 +1,13 @@ +#!/bin/sh + + +# ensure we use a current perl +export PATH=/home/nm4/perl5/perlbrew/bin:$PATH + +cd /home/nm4/src/exim-website || exit + +git pull | grep -q -v 'Already up-to-date.' && script/build.sh + +cd /home/services/mirmon_auto_pull || exit + +git pull --quiet diff --git a/bin/daily_git_commit_mail.sh b/bin/daily_git_commit_mail.sh new file mode 100755 index 0000000..6d4f6a4 --- /dev/null +++ b/bin/daily_git_commit_mail.sh @@ -0,0 +1,32 @@ +#!/bin/sh + +# ensure we use a current perl +export PATH=/home/nm4/perl5/perlbrew/bin:/home/nm4/bin:$PATH + +# git/bugzilla integration +flock $0 /home/nm4/src/git-perl-utils/script/git-to-bugzilla.pl --config=/home/nm4/src/git-perl-utils/exim.yml +flock $0 /home/nm4/src/git-perl-utils/script/git-to-bugzilla.pl --config=/home/nm4/src/git-perl-utils/exim-website.yml + +#cd /home/dwmw2/git/linux-2.6 +#git pull +#gitfeedmaillist.sh + +export FROM="Exim Git Commits Mailing List " +export SENDMAIL=/usr/sbin/exim +##export MLIST=nigel.metheringham@dev.intechnology.co.uk + +export GIT_DIR=/home/git/exim.git +export GIT_KEY=/home/nm4/.ssh/git_repo_sync +export GIT_SSH=/home/nm4/bin/gitssh.sh +git fetch --quiet github +git push --all github 2>&1 | fgrep -v 'Everything up-to-date' +export MAILTAG=/home/nm4/.git-mail-exim +export MLIST=exim-cvs@exim.org +export GITWEB=http://git.exim.org/exim.git +flock $0 /home/services/misc-git-hacks/git-feed-mail-list.sh + +export GIT_DIR=/home/git/exim-website.git +export MAILTAG=/home/nm4/.git-mail-exim-website +export MLIST=exim-cvs@exim.org +export GITWEB=http://git.exim.org/exim-website.git +flock $0 /home/services/misc-git-hacks/git-feed-mail-list.sh diff --git a/bin/gitssh.sh b/bin/gitssh.sh new file mode 100755 index 0000000..6cc2f9b --- /dev/null +++ b/bin/gitssh.sh @@ -0,0 +1,3 @@ +#!/bin/sh + +exec ssh -i ${GIT_KEY} $* diff --git a/bin/mirror-pcre b/bin/mirror-pcre new file mode 100755 index 0000000..a0a9b2b --- /dev/null +++ b/bin/mirror-pcre @@ -0,0 +1,8 @@ +#!/bin/sh +# +# +cd /home/services/ftp/pub || exit 2 + +VERBOSE='--quiet' +wget ${VERBOSE} --mirror --no-host-directories --cut-dirs=3 ftp://ftp.csx.cam.ac.uk/pub/software/programming/pcre/ + diff --git a/bin/sync-cvsd b/bin/sync-cvsd new file mode 100755 index 0000000..af999b5 --- /dev/null +++ b/bin/sync-cvsd @@ -0,0 +1,12 @@ +#!/bin/sh +# +CVSROOT=/home/cvs +CVSDROOT=/home/cvsd/repo +VERBOSE= #-v +# +MODULES="exim/exim-doc exim/exim-src exim/exim-test exim/exim-www" +# +for mod in $MODULES +do + rsync -ra $VERBOSE $CVSROOT/$mod/ $CVSDROOT/$mod/ +done