Commit b0eb6486 authored by Linus Tolke's avatar Linus Tolke
Browse files

Support for message only.

parent f8ced346
......@@ -3,6 +3,8 @@
# Detta {r en enklare variant av lyskom-send som f|ruts{tter att man st}r
# i ett iordninggjort dir.
#
# m -- Man f}r bara ett meddelande om att en ny version av klienten
# {r distribuerad.
# P -- PARTS.xx {r distributionen d{r delarna {r var f|r sig
# A -- ALL.xx {r lyskom.el sharad
# adir -- lyskom.el uuencodedad.
......@@ -50,7 +52,7 @@ then
if [ X$status != XACTIVE ]
then continue
fi
set -- \`getopt BCLOU: $options\`
set -- \`getopt mBCLOU: $options\`
while [ $1 != -- ]
do
shift;
......@@ -83,18 +85,19 @@ do
then continue
fi
message=
files=
all=
udir=
doc=
idoc=
set -- `getopt PBu:Aa:Dd:Ii: $options`
set -- `getopt mPBu:Aa:Dd:Ii: $options`
# defaults
while [ $1 != -- ]
do
case $1 in
-m) message=true;;
-P) files="$files `echo PARTS.*`" ;;
-B) files="$files `echo BYTEC.*`" ;;
-u) shift;
......@@ -117,6 +120,20 @@ do
echo sending to $1
if [ X$message = Xtrue ]
then
VER=`grep "lyskom-clientversion " vars.el | \
sed -n 's/^.*defconst.*lyskom-clientversion[^"]*"\([^"]*\)".*$/\1/p'`
Mail -s "lyskom-elispklienten version $VER ute nu" $1 <<EOM
Det finns nu en ny version av elisp-klienten att h{mta fr}n lysators
ftparea ftp.lysator.liu.se under i dirret /pub/lyskom/elisp-client/
Filerna heter: lyskom-$VER.el.Z
lyskom-$VER.elc.Z
Dokumentation: elisp-client-$VER.txt.Z
EOM
fi
for file in $files --
do
if [ $file != -- ]
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment