# HG changeset patch
# User Leif Leonhardy <not.really@online.de>
# Date 1283967554 -7200
# Node ID 7ffde08f86a0a46cfef84c0f9c0be25477bbba42
# Parent e5178b991bd2e50da3f184874fe74f9958b128a6
#9603: Stylistic change: Use 'case' statements for $UNAME case distinctions.
diff -r e5178b991bd2 -r 7ffde08f86a0 SPKG.txt
a
|
b
|
|
48 | 48 | Developers Guide. |
49 | 49 | * Consistently use "$UNAME" (which is set by 'sage-env') rather than |
50 | 50 | `uname`. (Reviewer change. Also further cosmetic changes.) |
| 51 | * Stylistic change: Use 'case' statements for $UNAME case distinctions |
| 52 | rather than (nested) 'if's with or-lists of 'test' statements. |
| 53 | (Reviewer change, too.) |
51 | 54 | * All patches/changes made at #9603. |
52 | 55 | |
53 | 56 | === iconv-1.13.1.p2 (John Palmieri, March 31st 2010) === |
diff -r e5178b991bd2 -r 7ffde08f86a0 spkg-check
a
|
b
|
|
9 | 9 | # platforms on which the iconv shipped with Sage will be installed. On |
10 | 10 | # other platforms Sage uses the system's iconv. |
11 | 11 | |
12 | | if [ "x$UNAME" = xSunOS ] || [ "x$UNAME" = xCYGWIN ] || [ "x$UNAME" = xHP-UX ]; then |
| 12 | case "$UNAME" in |
| 13 | SunOS) |
13 | 14 | # We must test iconv, but on Solaris some tests will always fail. |
14 | | if [ "x$UNAME" = xSunOS ]; then |
15 | | echo "If you see 3 core dumps, do not be too alarmed." |
16 | | echo "This is a known Solaris bug and can safely be ignored." |
17 | | echo "See http://trac.sagemath.org/sage_trac/ticket/8270" |
18 | | echo "It will probably be fixed in later releases of Solaris 10," |
19 | | echo "and was fixed in build 66 of OpenSolaris:" |
20 | | echo "http://bugs.opensolaris.org/bugdatabase/view_bug.do?bug_id=6550204" |
21 | | fi |
| 15 | echo "If you see 3 core dumps, don't be too alarmed." |
| 16 | echo "This is a known Solaris bug and can safely be ignored. See" |
| 17 | echo " http://trac.sagemath.org/sage_trac/ticket/8270" |
| 18 | echo "It will probably be fixed in later releases of Solaris 10," |
| 19 | echo "and was fixed in build 66 of OpenSolaris:" |
| 20 | echo " http://bugs.opensolaris.org/bugdatabase/view_bug.do?bug_id=6550204" |
| 21 | ;& |
| 22 | CYGWIN|HP-UX) |
22 | 23 | |
23 | 24 | cd src |
24 | 25 | |
… |
… |
|
30 | 31 | fi |
31 | 32 | echo "All the tests for iconv passed." |
32 | 33 | exit 0 |
33 | | else |
| 34 | ;; |
| 35 | *) # Not CYGWIN, HP-UX or SunOS (Solaris) |
34 | 36 | echo "iconv was not to be tested, since Sage will use the system's iconv" |
35 | 37 | echo "and not the one shipped with Sage." |
36 | 38 | echo "The iconv supplied by Sage is only used on Cygwin, HP-UX and Solaris." |
37 | 39 | exit 0 |
38 | | fi |
| 40 | esac |
39 | 41 | |
40 | 42 | # NOT REACHED |
41 | 43 | |
diff -r e5178b991bd2 -r 7ffde08f86a0 spkg-install
a
|
b
|
|
11 | 11 | # http://trac.sagemath.org/sage_trac/ticket/9603 |
12 | 12 | # for details. |
13 | 13 | |
14 | | if [ "x$UNAME" = xSunOS ] || [ "x$UNAME" = xHP-UX ] || [ "x$UNAME" = xCYGWIN ]; |
15 | | then |
| 14 | case "$UNAME" in |
| 15 | CYGWIN|HP-UX|SunOS) |
16 | 16 | echo "iconv will be installed as the operating system is Cygwin, HP-UX or Solaris." |
17 | 17 | echo "These systems either lack iconv, or do not have a sufficiently capable" |
18 | 18 | echo "version of iconv. See:" |
… |
… |
|
56 | 56 | exit 1 |
57 | 57 | fi |
58 | 58 | exit 0 |
59 | | else |
| 59 | ;; |
| 60 | *) # Not CYGWIN, HP-UX or SunOS (Solaris) |
60 | 61 | echo "iconv will not be installed, as we only need to build it on" |
61 | 62 | echo "Solaris, HP-UX and Cygwin, as the system's iconv will be used" |
62 | 63 | echo "on other platforms, rather than the one shipped with Sage." |
… |
… |
|
64 | 65 | echo " http://trac.sagemath.org/sage_trac/ticket/8567" |
65 | 66 | echo " http://trac.sagemath.org/sage_trac/ticket/9603" |
66 | 67 | exit 0 |
67 | | fi |
| 68 | esac |
68 | 69 | |
69 | 70 | # NOT REACHED |
70 | 71 | |