reviewed by: Maciej Stachowiak <mjs@eazel.com>

2001-02-04  Jason Leach  <jasonleach@usa.net>

	reviewed by: Maciej Stachowiak <mjs@eazel.com>

	* nautilus-clean.sh: Update to work with Solaris.
This commit is contained in:
Jason Leach 2001-02-04 20:16:56 +00:00 committed by Jacob Leach
parent 9c390b8377
commit 20c7de9f2e
2 changed files with 16 additions and 2 deletions

View file

@ -1,3 +1,9 @@
2001-02-04 Jason Leach <jasonleach@usa.net>
reviewed by: Maciej Stachowiak <mjs@eazel.com>
* nautilus-clean.sh: Update to work with Solaris.
2001-02-04 Maciej Stachowiak <mjs@eazel.com>
* indent.sh: Script that calls indent with the right parameters to

View file

@ -107,6 +107,14 @@ fi
unset FOUND_ANY
sysname=`uname -s`
if [ "$sysname" = "SunOS" ]; then
killcmd="pkill"
else
killcmd="killall"
fi
for NAME in $AUX_PROGS; do
EGREP_PATTERN=`echo $NAME | sed -e 's/\(.\)\(.*\)/[\1]\2/' | sed -e 's/\[\\\^\]/\[\\^\]/'`
COUNT=`ps auxww | egrep $EGREP_PATTERN | grep -v emacs | grep -v egrep | wc -l`
@ -120,9 +128,9 @@ for NAME in $AUX_PROGS; do
if [ "$quiet" != "yes" ]
then
killall "$NAME"
$killcmd "$NAME"
else
killall "$NAME" > /dev/null 2>&1
$killcmd "$NAME" > /dev/null 2>&1
fi
fi
done