blob: 05f02ecbd4dd84ec25361b645d079d8cb4fd731d (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
|
#!/bin/sh
scriptsdir=`dirname "$0"`
rootdir=`dirname "$scriptsdir"`
buildlogsdir=$rootdir/logs
sugarlogsdir=~/.sugar/default/logs
tarfile=$buildlogsdir/all-logs.tar.bz2
tarcommand="tar cfj $tarfile"
if [ -d $buildlogsdir ]; then
buildlogs=`cd $buildlogsdir; find *.log`
tarcommand="$tarcommand -C $buildlogsdir $buildlogs"
fi
if [ -d $sugarlogsdir ]; then
sugarlogs=`cd $sugarlogsdir; find *.log`
tarcommand="$tarcommand -C $sugarlogsdir $sugarlogs"
fi
$tarcommand
echo
echo "Send an email to Daniel Narvaez <dwnarvaez@gmail.com>."
echo "Attach the $tarfile file."
echo
|