sm-commit AT lists.ibiblio.org
Subject: Source Mage code commit list
List archive
[SM-Commit] GIT changes to master sorcery by Jaka Kranjc (09d7c27c947d87cae6857870b5fb494077d0ac74)
- From: Jaka Kranjc <scm AT sourcemage.org>
- To: sm-commit AT lists.ibiblio.org
- Subject: [SM-Commit] GIT changes to master sorcery by Jaka Kranjc (09d7c27c947d87cae6857870b5fb494077d0ac74)
- Date: Sun, 14 Dec 2008 10:18:24 -0600
GIT changes to master sorcery by Jaka Kranjc <lynxlynxlynx AT sourcemage.org>:
ChangeLog | 1 +
var/lib/sorcery/modules/libgcc2 | 9 +--------
2 files changed, 2 insertions(+), 8 deletions(-)
New commits:
commit 09d7c27c947d87cae6857870b5fb494077d0ac74
Author: Jaka Kranjc <lynxlynxlynx AT sourcemage.org>
Commit: Jaka Kranjc <lynxlynxlynx AT sourcemage.org>
libgcc2: made invoke_gcc2 slightly more efficient and style-conformant
diff --git a/ChangeLog b/ChangeLog
index fd1f9dc..12fa5e4 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -2,6 +2,7 @@
* libgcc2: use_gcc now also supports a greater-or-equal comparison,
triggered by appending + to the passed version #14620, based on a
patch by Fredrik Carlström
+ Made invoke_gcc2 slightly more efficient and style-conformant
2008-12-12 Jaka Kranjc <lynxlynxlynx AT sourcemage.org>
* libcast: fixed a syntax error in custom cppflag setting, patch from
diff --git a/var/lib/sorcery/modules/libgcc2 b/var/lib/sorcery/modules/libgcc2
index 18510bc..26cda10 100755
--- a/var/lib/sorcery/modules/libgcc2
+++ b/var/lib/sorcery/modules/libgcc2
@@ -92,15 +92,8 @@ function gcc2_add_paths() {
##
#---------------------------------------------------------------------
function invoke_gcc2() {
-
- USEGCC2=$( ls $SCRIPT_DIRECTORY/USEGCC2 2>/dev/null )
-
- if [ "$USEGCC2" ]
- then gcc2_add_paths /opt/gcc2
- fi
-
+ [[ -f $SCRIPT_DIRECTORY/USEGCC2 ]] && gcc2_add_paths /opt/gcc2
echo "Using gcc version: `gcc -dumpversion`"
-
}
- [SM-Commit] GIT changes to master sorcery by Jaka Kranjc (09d7c27c947d87cae6857870b5fb494077d0ac74), Jaka Kranjc, 12/14/2008
Archive powered by MHonArc 2.6.24.