1998-10-21 11:42:57 -05:00
|
|
|
|
#!/bin/sh
|
|
|
|
|
# set -v
|
|
|
|
|
# set -x
|
|
|
|
|
#
|
|
|
|
|
# Installation script for the tools of the lab that plug on Alliance
|
|
|
|
|
#
|
|
|
|
|
# Author: Fr<46>d<EFBFBD>ric P<>trot (fred@pasta.fr.ea)
|
|
|
|
|
# for version 0
|
|
|
|
|
#
|
1999-11-16 11:12:37 -06:00
|
|
|
|
# $Id: instool,v 1.20 1999/11/16 17:12:37 ludo Exp $
|
1998-10-21 11:42:57 -05:00
|
|
|
|
#
|
|
|
|
|
|
1999-10-21 08:53:13 -05:00
|
|
|
|
|
1999-10-29 03:47:30 -05:00
|
|
|
|
PATH=/users/outil1/alliance/cvsroot/CVSROOT:/asim/gnu/bin:/usr/ucb:/usr/etc:/usr/local/bin:/bin:/usr/bin:${PATH}
|
1999-09-24 08:24:58 -05:00
|
|
|
|
export PATH
|
1998-10-21 11:42:57 -05:00
|
|
|
|
|
1999-09-24 08:24:58 -05:00
|
|
|
|
#rsh ssh et .profile ...
|
1999-10-21 08:53:13 -05:00
|
|
|
|
#DATE=`date +"%Y.%m.%d_%H.%M.%S"`
|
1998-10-21 11:42:57 -05:00
|
|
|
|
|
1999-10-21 08:53:13 -05:00
|
|
|
|
DATE=`date +"%Y.%m.%d"`
|
1999-10-15 11:38:24 -05:00
|
|
|
|
mkdir -p $HOME/tmp
|
1999-10-15 05:09:14 -05:00
|
|
|
|
TMPDIR=$HOME/tmp
|
|
|
|
|
LOG=$TMPDIR/`basename $0`.$$
|
|
|
|
|
BUG=$TMPDIR/`basename $0`_bug.$$
|
1998-10-21 11:42:57 -05:00
|
|
|
|
|
|
|
|
|
BUGTEAM="fred ludo czo"
|
|
|
|
|
|
|
|
|
|
# rep par defaut : alliance/archi/$MACHINE
|
|
|
|
|
# alliance/share/...
|
1999-09-24 08:24:58 -05:00
|
|
|
|
TARGET="SunOS Solaris Linux_elf Linux"
|
1999-09-24 10:19:42 -05:00
|
|
|
|
NUM_TARGET=4
|
1999-09-24 10:20:28 -05:00
|
|
|
|
|
1998-10-21 11:42:57 -05:00
|
|
|
|
LABO=/users/soft5/newlabo/alliance
|
|
|
|
|
CELL_EXTENSIONS="al ap vst vbe cp hns edi spi db dat IDX"
|
|
|
|
|
CELLS=$LABO/share/cells
|
|
|
|
|
ETC=$LABO/share/etc
|
|
|
|
|
MANS=$LABO/share/man
|
|
|
|
|
|
1999-10-15 10:51:11 -05:00
|
|
|
|
umask 002
|
1999-11-04 07:53:11 -06:00
|
|
|
|
alcbanner "Instool" "0.0 alpha" "Alliance Tools Installation Script" "1999"
|
1999-11-04 07:36:59 -06:00
|
|
|
|
echo ""
|
|
|
|
|
echo ""
|
1998-10-21 11:42:57 -05:00
|
|
|
|
echo "News: "
|
|
|
|
|
echo " the include are shared"
|
1999-10-15 05:09:14 -05:00
|
|
|
|
echo " a log of all installations is available in $HOME/tmp"
|
1998-10-21 11:42:57 -05:00
|
|
|
|
echo " a message MUST be given for each installation"
|
|
|
|
|
|
|
|
|
|
if [ $# -lt 2 -o $# -gt 4 ] ; then
|
|
|
|
|
echo "Syntax: `basename $0` [-v] tool-home-directory message"
|
|
|
|
|
exit 1
|
|
|
|
|
fi
|
|
|
|
|
|
|
|
|
|
if [ $1 = "-v" ]; then
|
|
|
|
|
verbose=1
|
|
|
|
|
shift
|
|
|
|
|
else
|
|
|
|
|
verbose=0
|
|
|
|
|
fi
|
|
|
|
|
|
|
|
|
|
if [ -z $1 -o -z "${2:-''}" ] ; then
|
|
|
|
|
echo "Syntax: `basename $0` [-v] tool-home-directory message"
|
|
|
|
|
exit 1
|
|
|
|
|
fi
|
|
|
|
|
|
|
|
|
|
if [ $verbose -ne 0 ] ; then
|
|
|
|
|
echo "`basename $0` : Checking directories"
|
|
|
|
|
fi
|
|
|
|
|
|
|
|
|
|
if [ ! -d $1 ] ; then
|
|
|
|
|
echo "`basename $0` cannot install tool $1"
|
|
|
|
|
echo "Directory $1 doesn't exist!"
|
|
|
|
|
exit 2
|
|
|
|
|
fi
|
|
|
|
|
|
|
|
|
|
if [ ! -d $1/labo ] ; then
|
|
|
|
|
echo "`basename $0` cannot install tool $1"
|
|
|
|
|
echo "Directory $1/labo doesn't exist!"
|
|
|
|
|
exit 3
|
|
|
|
|
fi
|
|
|
|
|
|
|
|
|
|
for i in $TARGET ; do
|
|
|
|
|
if [ ! -d $1/labo/$i ] ; then
|
|
|
|
|
echo "`basename $0` cannot install tool $1"
|
|
|
|
|
echo "Directory $1/labo/$i doesn't exist!"
|
|
|
|
|
exit 4
|
|
|
|
|
fi
|
|
|
|
|
done
|
|
|
|
|
|
|
|
|
|
bin=0; lib=0; inc=0
|
|
|
|
|
for i in $TARGET ; do
|
|
|
|
|
if [ -d $1/labo/$i/bin ] ; then
|
|
|
|
|
bin=`expr $bin + 1`
|
|
|
|
|
fi
|
|
|
|
|
if [ -d $1/labo/$i/lib ] ; then
|
|
|
|
|
lib=`expr $lib + 1`
|
|
|
|
|
fi
|
|
|
|
|
if [ -d $1/labo/$i/include ] ; then
|
|
|
|
|
inc=`expr $inc + 1`
|
|
|
|
|
fi
|
|
|
|
|
done
|
|
|
|
|
|
|
|
|
|
if [ $bin -eq 0 ]; then
|
|
|
|
|
echo "No binaries to install, ..."
|
|
|
|
|
unset bin
|
1999-09-24 10:19:42 -05:00
|
|
|
|
elif [ ! $bin -eq $NUM_TARGET ]; then
|
1998-10-21 11:42:57 -05:00
|
|
|
|
echo "`basename $0` cannot install tool $1"
|
|
|
|
|
echo "Directory $1/labo/archi/bin doesn't exist on all architectures"
|
|
|
|
|
exit 5
|
|
|
|
|
fi
|
|
|
|
|
|
|
|
|
|
if [ $lib -eq 0 -a $inc -eq 0 ]; then
|
|
|
|
|
echo "No libraries to install, ..."
|
|
|
|
|
unset lib inc
|
1999-09-24 10:19:42 -05:00
|
|
|
|
elif [ ! \( $lib -eq $NUM_TARGET -a $inc -eq $NUM_TARGET \) ]; then
|
1998-10-21 11:42:57 -05:00
|
|
|
|
echo "`basename $0` cannot install tool $1"
|
|
|
|
|
echo "Directory $1/labo/archi/lib or/and $1/labo/archi/include "
|
|
|
|
|
echo "doesn't exist on all architectures"
|
|
|
|
|
exit 6
|
|
|
|
|
fi
|
|
|
|
|
|
|
|
|
|
if [ ${bin:-0} -eq 0 -a ${lib:-0} -eq 0 -a ${inc:-0} -eq 0 ] ; then
|
|
|
|
|
echo "`basename $0` cannot install tool $1"
|
|
|
|
|
echo "Nothing to be installed"
|
|
|
|
|
exit 0
|
|
|
|
|
fi
|
|
|
|
|
|
1999-10-15 05:09:14 -05:00
|
|
|
|
trap "rm -f $TMPDIR/*.$$ $LOG; exit 0" 0 1 2 15
|
1998-10-21 11:42:57 -05:00
|
|
|
|
#trap "exit 12" 0 1 2 15
|
|
|
|
|
|
|
|
|
|
if [ $verbose -ne 0 ] ; then
|
|
|
|
|
echo "`basename $0` : Checking directories contents for consistency"
|
|
|
|
|
fi
|
|
|
|
|
|
|
|
|
|
b=0
|
|
|
|
|
if [ ! ${bin:-0} -eq 0 ]; then
|
|
|
|
|
for i in $TARGET ; do
|
1999-10-15 05:09:14 -05:00
|
|
|
|
ls -1 $1/labo/$i/bin > $TMPDIR/$i.bin.$$ 2> /dev/null
|
|
|
|
|
if [ ! -s $TMPDIR/$i.bin.$$ ] ; then
|
1998-10-21 11:42:57 -05:00
|
|
|
|
b=`expr $b + 1`
|
|
|
|
|
fi
|
|
|
|
|
done
|
1999-09-24 10:19:42 -05:00
|
|
|
|
if [ $b -eq $NUM_TARGET ] ; then
|
1998-10-21 11:42:57 -05:00
|
|
|
|
for i in $TARGET ; do
|
|
|
|
|
echo "Please remove $1/labo/$i/bin since it is empty"
|
|
|
|
|
done
|
|
|
|
|
unset bin
|
|
|
|
|
fi
|
|
|
|
|
fi
|
|
|
|
|
l=0
|
|
|
|
|
h=0
|
|
|
|
|
if [ ! ${lib:-0} -eq 0 ]; then
|
|
|
|
|
for i in $TARGET ; do
|
1999-10-15 05:09:14 -05:00
|
|
|
|
ls -1 $1/labo/$i/lib > $TMPDIR/$i.lib.$$ 2> /dev/null
|
|
|
|
|
ls -1 $1/labo/$i/lib/*.a | awk -F/ '{print $NF}' > $TMPDIR/$i.lib.a.$$ 2> /dev/null
|
|
|
|
|
diff $TMPDIR/$i.lib.$$ $TMPDIR/$i.lib.a.$$ > /dev/null 2>&1
|
1998-10-21 11:42:57 -05:00
|
|
|
|
if [ ! $? -eq 0 ] ; then
|
|
|
|
|
echo "`basename $0` cannot install tool $1"
|
|
|
|
|
echo "directory $1/labo/$i/lib contains files "
|
|
|
|
|
echo "that do not end with .a"
|
|
|
|
|
exit 7
|
|
|
|
|
fi
|
1999-10-15 05:09:14 -05:00
|
|
|
|
ls -1 $1/labo/$i/include > $TMPDIR/$i.inc.$$ 2> /dev/null
|
|
|
|
|
ls -1 $1/labo/$i/include/*.h | awk -F/ '{print $NF}' > $TMPDIR/$i.inc.h.$$ 2> /dev/null
|
|
|
|
|
diff $TMPDIR/$i.inc.$$ $TMPDIR/$i.inc.h.$$ > /dev/null 2>&1
|
1998-10-21 11:42:57 -05:00
|
|
|
|
if [ ! $? -eq 0 ] ; then
|
|
|
|
|
echo "`basename $0` cannot install tool $1"
|
|
|
|
|
echo "directory $1/labo/$i/include contains files "
|
|
|
|
|
echo "that do not end with .h"
|
|
|
|
|
exit 7
|
|
|
|
|
fi
|
1999-10-15 05:09:14 -05:00
|
|
|
|
if [ ! -s $TMPDIR/$i.lib.$$ ] ; then
|
1998-10-21 11:42:57 -05:00
|
|
|
|
l=`expr $l + 1`
|
|
|
|
|
fi
|
1999-10-15 05:09:14 -05:00
|
|
|
|
if [ ! -s $TMPDIR/$i.inc.$$ ] ; then
|
1998-10-21 11:42:57 -05:00
|
|
|
|
h=`expr $h + 1`
|
|
|
|
|
fi
|
1999-10-15 05:09:14 -05:00
|
|
|
|
if [ \( ! -s $TMPDIR/$i.lib.$$ -a -s $TMPDIR/$i.inc.$$ \) -o \
|
|
|
|
|
\( -s $TMPDIR/$i.lib.$$ -a ! -s $TMPDIR/$i.inc.$$ \) ] ; then
|
1998-10-21 11:42:57 -05:00
|
|
|
|
echo "`basename $0` cannot install tool $1"
|
|
|
|
|
echo "Libraries requires includes and vice-versa"
|
|
|
|
|
exit 7
|
|
|
|
|
fi
|
|
|
|
|
done
|
1999-09-24 10:19:42 -05:00
|
|
|
|
if [ $l -eq $NUM_TARGET ] ; then
|
1998-10-21 11:42:57 -05:00
|
|
|
|
echo "Please remove $1/labo/archi/lib since it is empty "
|
|
|
|
|
unset lib
|
|
|
|
|
fi
|
1999-09-24 10:19:42 -05:00
|
|
|
|
if [ $h -eq $NUM_TARGET ] ; then
|
1998-10-21 11:42:57 -05:00
|
|
|
|
echo "Please remove $1/labo/archi/include since it is empty "
|
|
|
|
|
unset inc
|
|
|
|
|
fi
|
|
|
|
|
fi
|
|
|
|
|
|
|
|
|
|
if [ ${bin:-0} -eq 0 -a ${lib:-0} -eq 0 -a ${inc:-0} -eq 0 ] ; then
|
|
|
|
|
echo "`basename $0` cannot install tool $1"
|
|
|
|
|
echo "Nothing to install"
|
|
|
|
|
exit 1
|
|
|
|
|
fi
|
|
|
|
|
|
|
|
|
|
DIR=`echo ${bin:+bin} ${lib:+lib} ${inc:+include}`
|
|
|
|
|
|
|
|
|
|
bins=0; libs=0; incs=0
|
|
|
|
|
for i in $TARGET ; do
|
|
|
|
|
for j in $TARGET ; do
|
|
|
|
|
if [ ! ${bin:-0} -eq 0 ]; then
|
1999-10-15 05:09:14 -05:00
|
|
|
|
diff $TMPDIR/$j.bin.$$ $TMPDIR/$i.bin.$$ > /dev/null 2>&1
|
1998-10-21 11:42:57 -05:00
|
|
|
|
bins=`expr $bins + $?`
|
|
|
|
|
fi
|
|
|
|
|
if [ ! ${lib:-0} -eq 0 ]; then
|
1999-10-15 05:09:14 -05:00
|
|
|
|
diff $TMPDIR/$j.lib.$$ $TMPDIR/$i.lib.$$ > /dev/null 2>&1
|
1998-10-21 11:42:57 -05:00
|
|
|
|
libs=`expr $libs + $?`
|
1999-10-15 05:09:14 -05:00
|
|
|
|
diff $TMPDIR/$j.inc.$$ $TMPDIR/$i.inc.$$ > /dev/null 2>&1
|
1998-10-21 11:42:57 -05:00
|
|
|
|
incs=`expr $incs + $?`
|
|
|
|
|
fi
|
|
|
|
|
done
|
|
|
|
|
done
|
|
|
|
|
|
|
|
|
|
if [ $bins -gt 0 -o $libs -gt 0 -o $incs -gt 0 ] ; then
|
|
|
|
|
echo "`basename $0` cannot install tool $1"
|
|
|
|
|
echo "all bin/lib/include directories do not contain the same files"
|
|
|
|
|
echo "for all target architectures"
|
|
|
|
|
exit 8
|
|
|
|
|
fi
|
|
|
|
|
|
|
|
|
|
echo "`basename $0`: Checking for space on disk :"
|
1999-10-15 05:01:11 -05:00
|
|
|
|
s=1
|
1998-10-21 11:42:57 -05:00
|
|
|
|
for i in $TARGET; do
|
|
|
|
|
for j in $DIR; do
|
1999-10-04 09:57:48 -05:00
|
|
|
|
d=`du -s $1/labo/$i/$j 2>/dev/null | tail -1 | cut -f 1`
|
1998-10-21 11:42:57 -05:00
|
|
|
|
s=`expr $s + $d`
|
|
|
|
|
done
|
|
|
|
|
done
|
1999-09-24 08:24:58 -05:00
|
|
|
|
a=`df $LABO | sed -e 's/ */ /g' | tail -1 | cut -f 4`
|
1998-10-21 11:42:57 -05:00
|
|
|
|
|
|
|
|
|
if [ $verbose -ne 0 ] ; then
|
|
|
|
|
echo "Available disk space $a"
|
|
|
|
|
echo "Required disk space $s"
|
|
|
|
|
fi
|
|
|
|
|
|
|
|
|
|
if [ $s -gt $a ] ; then
|
|
|
|
|
echo "`basename $0`: cannot install tool $1"
|
|
|
|
|
echo "Not enough space on device for the installation"
|
|
|
|
|
echo "Ring me again in a few days, ..."
|
|
|
|
|
exit 23
|
|
|
|
|
fi
|
1999-09-24 08:24:58 -05:00
|
|
|
|
|
1998-10-21 11:42:57 -05:00
|
|
|
|
if [ $verbose -ne 0 ] ; then
|
|
|
|
|
echo "The real stuff right now, ..."
|
|
|
|
|
fi
|
|
|
|
|
|
|
|
|
|
for i in $TARGET ; do
|
|
|
|
|
echo "+---------------------------------------------------" >> $LOG
|
|
|
|
|
echo "Target $i " >> $LOG
|
|
|
|
|
for j in $DIR ; do
|
|
|
|
|
echo "+---------------------" >> $LOG
|
|
|
|
|
echo "directory $j " >> $LOG
|
|
|
|
|
if [ $j = "bin" ] ; then
|
|
|
|
|
for k in $1/labo/$i/$j/*; do
|
|
|
|
|
cp $k $LABO/archi/$i/$j/`basename $k`.$DATE
|
|
|
|
|
if [ $? -ne 0 ] ; then
|
|
|
|
|
echo "`basename $0`: cp returned a non-zero exit status"
|
1999-11-16 11:12:37 -06:00
|
|
|
|
echo cp $k $LABO/archi/$i/$j/`basename $k`.$DATE
|
1998-10-21 11:42:57 -05:00
|
|
|
|
echo "that sucks pretty much so I quit leaving things as is"
|
|
|
|
|
exit 17
|
|
|
|
|
fi
|
1999-11-15 08:45:25 -06:00
|
|
|
|
chmod 775 $LABO/archi/$i/$j/`basename $k`.$DATE
|
1998-10-21 11:42:57 -05:00
|
|
|
|
rm -f $LABO/archi/$i/$j/`basename $k` > /dev/null 2>&1
|
|
|
|
|
ln -s $LABO/archi/$i/$j/`basename $k`.$DATE $LABO/archi/$i/$j/`basename $k`
|
|
|
|
|
if [ $? -ne 0 ] ; then
|
|
|
|
|
echo "`basename $0`: ln returned a non-zero exit status"
|
1999-11-16 11:12:37 -06:00
|
|
|
|
echo ln -s $LABO/archi/$i/$j/`basename $k`.$DATE $LABO/archi/$i/$j/`basename $k`
|
1998-10-21 11:42:57 -05:00
|
|
|
|
echo "that sucks pretty much so I quit leaving things as is"
|
|
|
|
|
exit 17
|
|
|
|
|
fi
|
|
|
|
|
done
|
|
|
|
|
elif [ $j = "lib" ] ; then
|
|
|
|
|
for k in $1/labo/$i/$j/*; do
|
|
|
|
|
cp $k $LABO/archi/$i/$j >> $BUG 2>&1
|
|
|
|
|
if [ $? -ne 0 ] ; then
|
|
|
|
|
echo "`basename $0`: cp returned a non-zero exit status"
|
1999-11-16 11:12:37 -06:00
|
|
|
|
echo cp $k $LABO/archi/$i/$j
|
1998-10-21 11:42:57 -05:00
|
|
|
|
echo "that sucks pretty much so I quit leaving things as is"
|
|
|
|
|
exit 17
|
|
|
|
|
fi
|
|
|
|
|
if [ $i = "SunOS" ] ; then
|
1999-10-15 05:01:11 -05:00
|
|
|
|
ssh heavy ranlib $LABO/archi/$i/$j/`basename $k`
|
1998-10-21 11:42:57 -05:00
|
|
|
|
fi
|
1999-11-15 08:45:25 -06:00
|
|
|
|
chmod 664 $LABO/archi/$i/$j >> $BUG 2>&1
|
1998-10-21 11:42:57 -05:00
|
|
|
|
done
|
|
|
|
|
else
|
|
|
|
|
cp $1/labo/$i/$j/* $LABO/archi/$i/$j >> $BUG 2>&1
|
|
|
|
|
if [ $? -ne 0 ] ; then
|
|
|
|
|
echo "`basename $0`: cp returned a non-zero exit status"
|
1999-11-16 11:12:37 -06:00
|
|
|
|
echo cp $1/labo/$i/$j/* $LABO/archi/$i/$j
|
1998-10-21 11:42:57 -05:00
|
|
|
|
echo "that sucks pretty much so I quit leaving things as is"
|
|
|
|
|
exit 17
|
|
|
|
|
fi
|
1999-11-15 08:45:25 -06:00
|
|
|
|
chmod 664 $LABO/archi/$i/$j/* >> $BUG 2>&1
|
1998-10-21 11:42:57 -05:00
|
|
|
|
fi
|
|
|
|
|
ls -1 $1/labo/$i/$j | fmt -70 >> $LOG
|
|
|
|
|
done
|
|
|
|
|
done
|
|
|
|
|
for i in $DIR; do
|
|
|
|
|
if [ $i = "lib" ] ; then
|
1999-10-15 05:09:14 -05:00
|
|
|
|
if [ -f $TMPDIR/libraries.mk.* ] ; then
|
1998-10-21 11:42:57 -05:00
|
|
|
|
echo "`basename $0`: Sorry, somebody is updating libraries.mk"
|
|
|
|
|
echo "waiting until the update is done to finish"
|
|
|
|
|
fi
|
1999-10-15 05:09:14 -05:00
|
|
|
|
while [ -f $TMPDIR/libraries.mk.$$ ]; do
|
1998-10-21 11:42:57 -05:00
|
|
|
|
sleep 2
|
|
|
|
|
echo "Still waiting, ..."
|
|
|
|
|
done
|
1999-10-15 05:09:14 -05:00
|
|
|
|
updatelibmk $LABO/archi/SunOS > $TMPDIR/libraries.mk.$$
|
1999-10-15 11:38:24 -05:00
|
|
|
|
mv -f $ETC/libraries.mk $ETC/libraries.mk.$DATE
|
1998-10-21 11:42:57 -05:00
|
|
|
|
if [ $? -ne 0 ] ; then
|
|
|
|
|
echo "`basename $0`: mv returned a non-zero exit status"
|
|
|
|
|
echo "while copying libraries.mk to libraries.mk.$$"
|
|
|
|
|
echo "that sucks pretty much so I quit leaving things as is"
|
|
|
|
|
exit 17
|
|
|
|
|
fi
|
1999-10-15 11:38:24 -05:00
|
|
|
|
mv -f $TMPDIR/libraries.mk.$$ $ETC/libraries.mk
|
1998-10-21 11:42:57 -05:00
|
|
|
|
if [ $? -ne 0 ] ; then
|
|
|
|
|
echo "`basename $0`: mv returned a non-zero exit status"
|
|
|
|
|
echo "while copying libraries.mk to libraries.mk.$$"
|
|
|
|
|
echo "that sucks pretty much so I quit leaving things as is"
|
|
|
|
|
exit 17
|
|
|
|
|
fi
|
|
|
|
|
fi
|
|
|
|
|
done
|
|
|
|
|
echo >> $LOG
|
|
|
|
|
if [ -s $BUG ] ; then
|
1999-09-24 08:24:58 -05:00
|
|
|
|
mail -s "ALC : Problem while installing `basename $1`" $BUGTEAM < $BUG
|
1998-10-21 11:42:57 -05:00
|
|
|
|
fi
|
1999-11-04 07:36:59 -06:00
|
|
|
|
|
1999-10-15 05:11:39 -05:00
|
|
|
|
cat $LOG >> $TMPDIR/`basename $1`.log
|
1999-11-04 07:36:59 -06:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
# mail alcteam
|
|
|
|
|
#echo $* | mail -s "ALC : Install of `basename $1`" alliance-programmers@asim.lip6.fr
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
TMPFILE=/tmp/instool.$$
|
|
|
|
|
FINGER=`who am i | gawk '{gsub(/^[^\!]*\!/,""); print $1}'`
|
1999-11-04 07:51:22 -06:00
|
|
|
|
SUJ="Instool de `basename $1`"
|
1999-11-04 07:36:59 -06:00
|
|
|
|
|
|
|
|
|
(
|
|
|
|
|
echo "===================================================================="
|
1999-11-04 07:51:22 -06:00
|
|
|
|
echo "$SUJ"
|
1999-11-04 07:36:59 -06:00
|
|
|
|
echo "le : `date`"
|
|
|
|
|
echo "par : $FINGER"
|
|
|
|
|
echo "===================================================================="
|
|
|
|
|
echo ""
|
|
|
|
|
echo $*
|
|
|
|
|
echo ""
|
|
|
|
|
echo "===================================================================="
|
|
|
|
|
echo "Ce message est envoy<6F> au personnes abonn<6E>es <20> alliance-programmers"
|
|
|
|
|
echo "Pour plus d'information sur cette mailling-list, visitez :"
|
|
|
|
|
echo "http://www-asim.lip6.fr/alliance/mailing-lists/"
|
|
|
|
|
|
|
|
|
|
) > "$TMPFILE"
|
|
|
|
|
|
|
|
|
|
cat "$TMPFILE" | mail -s "ALC : $SUJ" alliance-programmers@asim.lip6.fr
|
|
|
|
|
|
|
|
|
|
rm -f "$TMPFILE" dummy
|
|
|
|
|
|
|
|
|
|
exit 0
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1999-10-29 03:47:30 -05:00
|
|
|
|
|