add correct to for isg_order
Signed-off-by: Nico Schottelius <nico@kr.ethz.ch>
This commit is contained in:
parent
623b1e2456
commit
f7808b6c8e
8 changed files with 18 additions and 13 deletions
|
|
@ -19,6 +19,9 @@
|
|||
#
|
||||
# Submit solution according to http://edu.panter.ch/FormelleBedingungenUebungenBetriebssysteme
|
||||
#
|
||||
# Good information about shell/mail sending:
|
||||
# http://www.shelldorado.com/articles/mailattachments.html
|
||||
#
|
||||
|
||||
|
||||
################################################################################
|
||||
|
|
@ -27,11 +30,11 @@ __pwd="$(pwd -P)"
|
|||
__mydir="${0%/*}"; __abs_mydir="$(cd "$__mydir" && pwd -P)"
|
||||
__myname=${0##*/}; __abs_myname="$__abs_mydir/$__myname"
|
||||
|
||||
set -x
|
||||
#set -x
|
||||
|
||||
if [ $# -ne 2 ]; then
|
||||
if [ $# -lt 2 ]; then
|
||||
cat << eof
|
||||
$0: <subject> <srcdir>
|
||||
$0: <subject> <srcdir> [comments]
|
||||
|
||||
eof
|
||||
exit 1
|
||||
|
|
@ -41,6 +44,7 @@ fi
|
|||
subject_suff="$1"; shift
|
||||
input="$1"; shift
|
||||
input_base="${input##*/}"
|
||||
comments="$@"
|
||||
|
||||
self="nschotte"
|
||||
to="bseelige"
|
||||
|
|
@ -52,10 +56,9 @@ subject_pref="[Betriebssysteme]"
|
|||
|
||||
sendmail="/usr/sbin/sendmail"
|
||||
to_all="${to_q} ${self_q}"
|
||||
to_all="${self_q}"
|
||||
#to_all="${self_q}"
|
||||
|
||||
# check stuff before sending out
|
||||
|
||||
( cd "${input}" && make test && make clean ); ret=$?
|
||||
|
||||
if [ "${ret}" -ne 0 ]; then
|
||||
|
|
@ -70,8 +73,9 @@ To: $to_all
|
|||
Subject: $subject_pref $subject_suff
|
||||
From: $self_q
|
||||
|
||||
|
||||
$comments
|
||||
Gesendet mit ${__myname}.
|
||||
|
||||
eof
|
||||
)
|
||||
cd "${input}/.." && tar c "${input_base}" | gzip -9 | uuencode "${subject_suff}.tar.gz"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue