-
Notifications
You must be signed in to change notification settings - Fork 1
/
tools-version.sh
executable file
·38 lines (33 loc) · 1.3 KB
/
tools-version.sh
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
27
28
29
30
31
32
33
34
35
36
37
38
#!/bin/sh
# Report the version of distro and tools building inkscape
#
# You can get the latest distro command from
# distro web page: http://distro.pipfield.ca/
# Please add a tool you want to check
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 "
ENVPATTERN='PATH\|FLAGS\|LANG'
srcdir=`dirname $0`
test -z "$srcdir" && srcdir=.
echo '============================================================================='
echo 'When you report a trouble about building BZR version of inkscape, '
echo 'Please report following information about distro and tools version, too. '
echo
(echo '--1. distribution------------------------------------------------------------'
$srcdir/distro -a
echo )
(echo '--2. tools-------------------------------------------------------------------'
for x in $TOOLS; do
loc=`which $x 2>/dev/null`
if [ -z "$loc" ]; then
echo "$x: not found"
else
echo -n "$loc: "
y=`echo $x | cut -f1 -d-`
$x --version </dev/null | grep $y
fi
done
echo )
(echo '--3. environment variables---------------------------------------------------'
env | grep -e $ENVPATTERN
echo )
echo '============================================================================='