From d3c195bbd33a805130ab55420c42b2b55eed46d2 Mon Sep 17 00:00:00 2001 From: Nico Schottelius Date: Wed, 15 Sep 2010 15:50:38 +0200 Subject: [PATCH] cleanup Signed-off-by: Nico Schottelius --- eth/user/svn_trac_create | 17 ++++++++++++++--- 1 file changed, 14 insertions(+), 3 deletions(-) diff --git a/eth/user/svn_trac_create b/eth/user/svn_trac_create index a102251..59830bd 100755 --- a/eth/user/svn_trac_create +++ b/eth/user/svn_trac_create @@ -19,9 +19,16 @@ # # +# +# Standard variables (stolen from cconf) +# +__pwd="$(pwd -P)" +__mydir="${0%/*}"; __abs_mydir="$(cd "$__mydir" && pwd -P)" +__myname=${0##*/}; __abs_myname="$__abs_mydir/$__myname" + if [ $# -lt 3 ]; then cat << eof -$0: [comments] +$__myname: [comments] trac: Also create a trac instance for the svn repo. @@ -39,7 +46,7 @@ if [ -z "$NETHZ_USERNAME" ]; then fi sendmail="/usr/sbin/sendmail" -to="support@inf.ethz.ch systems-sysadmins@lists.inf.ethz.ch" +to="systems-sysadmins@lists.inf.ethz.ch" from="${NETHZ_USERNAME}@ethz.ch" reponame="$1"; shift @@ -53,9 +60,11 @@ else fi cat << eof | $sendmail -f "$from" $to -To: support@inf.ethz.ch, systems-sysadmins@lists.inf.ethz.ch +To: systems-sysadmins@lists.inf.ethz.ch Subject: Request for new svn repo $reponame for OU Systems +Sysadmin-Proxy: Forward this e-mail 1:1 to support@inf.ethz.ch. + Comments: $@ Repository admin: $repoowner Repository name: $reponame @@ -67,4 +76,6 @@ Cheers, $USER +-- +Send by ${__myname} eof