Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/commands/bug-report
blob: cb60b14a6baa0b8e03af17cbb6a5ec995e6046b9 (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

commandsdir=`dirname "$0"`
rootdir=`dirname "$commandsdir"`
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