~inkscape.dev/inkscape/trunk

« back to all changes in this revision

Viewing changes to tools-version.sh

  • Committer: mental
  • Date: 2006-01-16 02:36:01 UTC
  • Revision ID: mental@users.sourceforge.net-20060116023601-wkr0h7edl5veyudq
moving trunk for module inkscape

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#!/bin/sh
 
2
# Report the version of distro and tools building inkscape
 
3
#
 
4
# You can get the latest distro command from 
 
5
# distro web page: http://distro.pipfield.ca/ 
 
6
 
 
7
# Please add a tool you want to check
 
8
TOOLS="m4 autoconf autoheader automake automake-1.7 automake-1.8 automake-1.9 aclocal aclocal-1.7 aclocal-1.8 aclocal-1.9 intltoolize gettextize libtoolize "
 
9
ENVPATTERN='PATH\|FLAGS\|LANG'
 
10
 
 
11
srcdir=`dirname $0`
 
12
test -z "$srcdir" && srcdir=.
 
13
 
 
14
echo '============================================================================='
 
15
echo 'When you report a trouble about building CVS version of inkscape,            '
 
16
echo 'Please report following information about distro and tools version, too.     '
 
17
echo 
 
18
(echo '--1. distribution------------------------------------------------------------'
 
19
$srcdir/distro -a
 
20
echo )
 
21
 
 
22
(echo '--2. tools-------------------------------------------------------------------'
 
23
for x in $TOOLS; do 
 
24
    loc=`which $x 2>/dev/null`
 
25
    if [ -z "$loc" ]; then
 
26
        echo "$x: not found"
 
27
    else 
 
28
        echo -n "$loc: "
 
29
        y=`echo $x | cut -f1 -d-`
 
30
        $x --version </dev/null | grep $y
 
31
    fi
 
32
done 
 
33
echo )
 
34
 
 
35
(echo '--3. environment variables---------------------------------------------------'
 
36
env | grep -e $ENVPATTERN
 
37
echo )
 
38
echo '============================================================================='