Gentoo Archives: gentoo-commits

From: "Mike Frysinger (vapier)" <vapier@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in app-arch/lzma-utils/files: lzma-nocxx.sh
Date: Sat, 10 May 2008 10:38:44
Message-Id: E1JumTR-0002QP-T5@stork.gentoo.org
1 vapier 08/05/10 10:38:41
2
3 Modified: lzma-nocxx.sh
4 Log:
5 Handle just -d in wrapper script as this is how tar calls it #220899 by Ulrich Müller.
6 (Portage version: 2.2_pre5)
7
8 Revision Changes Path
9 1.2 app-arch/lzma-utils/files/lzma-nocxx.sh
10
11 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/app-arch/lzma-utils/files/lzma-nocxx.sh?rev=1.2&view=markup
12 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/app-arch/lzma-utils/files/lzma-nocxx.sh?rev=1.2&content-type=text/plain
13 diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/app-arch/lzma-utils/files/lzma-nocxx.sh?r1=1.1&r2=1.2
14
15 Index: lzma-nocxx.sh
16 ===================================================================
17 RCS file: /var/cvsroot/gentoo-x86/app-arch/lzma-utils/files/lzma-nocxx.sh,v
18 retrieving revision 1.1
19 retrieving revision 1.2
20 diff -u -r1.1 -r1.2
21 --- lzma-nocxx.sh 10 May 2008 08:35:08 -0000 1.1
22 +++ lzma-nocxx.sh 10 May 2008 10:38:41 -0000 1.2
23 @@ -1,12 +1,19 @@
24 #!/bin/sh
25
26 -if [ "$1" = "-dc" ] ; then
27 - shift
28 - cat "$@" | lzmadec
29 -else
30 - (
31 - echo "You've built lzma-utils without C++ support."
32 - echo "If you want lzma support, rebuild with C++ support."
33 - ) 1>&2
34 - exit 1
35 -fi
36 +case $1 in
37 + -dc)
38 + shift
39 + cat "$@" | lzmadec
40 + ;;
41 + -d)
42 + shift
43 + lzmadec
44 + ;;
45 + *)
46 + (
47 + echo "You've built lzma-utils without C++ support."
48 + echo "If you want lzma support, rebuild with C++ support."
49 + ) 1>&2
50 + exit 1
51 + ;;
52 +esac
53
54
55
56 --
57 gentoo-commits@l.g.o mailing list