Skip to Content.
Sympa Menu

sm-commit - [SM-Commit] GIT changes to master grimoire by Vlad Glagolev (181c033d1a6c28cf7ccebf4265ef37d184857152)

sm-commit AT lists.ibiblio.org

Subject: Source Mage code commit list

List archive

Chronological Thread  
  • From: Vlad Glagolev <scm AT sourcemage.org>
  • To: sm-commit AT lists.ibiblio.org
  • Subject: [SM-Commit] GIT changes to master grimoire by Vlad Glagolev (181c033d1a6c28cf7ccebf4265ef37d184857152)
  • Date: Mon, 20 Jun 2011 12:11:42 -0500

GIT changes to master grimoire by Vlad Glagolev <stealth AT sourcemage.org>:

ChangeLog | 1 +
FUNCTIONS | 7 +++++++
2 files changed, 8 insertions(+)

New commits:
commit 181c033d1a6c28cf7ccebf4265ef37d184857152
Author: Vlad Glagolev <stealth AT sourcemage.org>
Commit: Vlad Glagolev <stealth AT sourcemage.org>

added first draft for function is_version_less() to compare two versions

diff --git a/ChangeLog b/ChangeLog
index 565842c..477e6d5 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,6 @@
2011-06-20 Vlad Glagolev <stealth AT sourcemage.org>
* utils/memtester: new spell, utility to test for memory faults
+ * FUNCTIONS: added function is_version_less() to compare two versions

2011-06-20 Ladislav Hagara <hgr AT vabo.cz>
* utils/inxi: new spell, system information script
diff --git a/FUNCTIONS b/FUNCTIONS
index 00cab13..2b2bedc 100755
--- a/FUNCTIONS
+++ b/FUNCTIONS
@@ -703,6 +703,13 @@ function default_build_make(){
}

#---
+## Compare if one version is less than another (uses sort from coreutils)
+#---
+function is_version_less() {
+ [ ! $(echo -e "$1\n$2" | sort --version-sort | head -1) = "$2" ]
+}
+
+#---
## Simple version check with force depends
## @params $1 - the spell to check the version of
## @params $2 - the simple version to check against



  • [SM-Commit] GIT changes to master grimoire by Vlad Glagolev (181c033d1a6c28cf7ccebf4265ef37d184857152), Vlad Glagolev, 06/20/2011

Archive powered by MHonArc 2.6.24.

Top of Page