updated on Thu Jan 12 08:01:00 UTC 2012
[aur-mirror.git] / soundkonverter-kde3 / fix-automake-version-test.patch
blobd810f1da56ff91dafa948fc88dfc3f69b62ed450
1 --- admin/cvs.sh.orig 2008-03-02 12:34:18.000000000 +0200
2 +++ admin/cvs.sh 2010-12-18 10:28:14.548921963 +0200
3 @@ -61,32 +61,41 @@
4 esac
6 AUTOMAKE_STRING=`$AUTOMAKE --version | head -n 1`
7 -required_automake_version="1.6.1 or newer"
8 +required_automake_version="1.6.1"
9 case $AUTOMAKE_STRING in
10 - automake*1.5d* | automake*1.5* | automake*1.5-* )
11 - echo "*** YOU'RE USING $AUTOMAKE_STRING."
12 - echo "*** KDE requires automake $required_automake_version"
13 - exit 1
14 - ;;
15 - automake*1.6.* | automake*1.[7-9]* | automake*1.10*)
16 - echo "*** $AUTOMAKE_STRING found."
17 - UNSERMAKE=no
18 - ;;
19 - "" )
20 - echo "*** AUTOMAKE NOT FOUND!."
21 - echo "*** KDE requires automake $required_automake_version"
22 - exit 1
23 - ;;
24 - *unsermake* ) :
25 - echo "*** YOU'RE USING UNSERMAKE."
26 - echo "*** GOOD LUCK!! :)"
27 - UNSERMAKE=unsermake
28 - ;;
29 - * )
30 - echo "*** YOU'RE USING $AUTOMAKE_STRING."
31 - echo "*** KDE requires automake $required_automake_version"
32 - exit 1
33 - ;;
34 + automake*)
35 + AUTOMAKE_VERSION=`echo $AUTOMAKE_STRING | awk '{print $4}'`
36 + VERCMP_SAYS=`vercmp $AUTOMAKE_VERSION $required_automake_version`
37 + case $VERCMP_SAYS in
38 + -1)
39 + echo "*** YOU'RE USING $AUTOMAKE_STRING."
40 + echo "*** KDE requires automake $required_automake_version or newer."
41 + exit 1
42 + ;;
43 + 0 | 1)
44 + UNSERMAKE=no
45 + ;;
46 + *)
47 + echo "*** vercmp choked. sorry."
48 + exit 1
49 + ;;
50 + esac
51 + ;;
52 + "" )
53 + echo "*** AUTOMAKE NOT FOUND!."
54 + echo "*** KDE requires automake $required_automake_version or newer."
55 + exit 1
56 + ;;
57 + *unsermake* ) :
58 + echo "*** YOU'RE USING UNSERMAKE."
59 + echo "*** GOOD LUCK!! :)"
60 + UNSERMAKE=unsermake
61 + ;;
62 + *)
63 + echo "*** This should never happen."
64 + echo "*** You're using $AUTOMAKE_STRING. This script thinks it's"
65 + echo "*** not good enough. Fix the script if you disagree."
66 + ;;
67 esac
68 unset required_automake_version