[Frugalware-git] kdetesting2: util.sh: Move Fuse to the top with other low level functions.

Michel Hermier hermier at frugalware.org
Wed Jan 26 20:16:52 CET 2011


Git-Url: http://git.frugalware.org/gitweb/gitweb.cgi?p=kdetesting2.git;a=commitdiff;h=4fb3066e48b14ffc960fd635fd3d116d21db03f8

commit 4fb3066e48b14ffc960fd635fd3d116d21db03f8
Author: Michel Hermier <hermier at frugalware.org>
Date:   Mon Jan 3 13:17:12 2011 +0100

util.sh: Move Fuse to the top with other low level functions.

diff --git a/source/include/util.sh b/source/include/util.sh
index c2beb71..8e0c0a0 100644
--- a/source/include/util.sh
+++ b/source/include/util.sh
@@ -118,6 +118,22 @@ Fdie() {
}

###
+# * Fuse(): Checks a use variable. Parameter: a use variable. Example: Fuse
+# $USE_DEVEL.
+###
+Fuse()
+{
+	if [ "$1" = "n" ]; then
+		return 1
+	elif [ "$1" = "y" ]; then
+		return 0
+	else
+		Fmessage "Unknown use variable!"
+		Fdie
+	fi
+}
+
+###
# * __Faddsubpkg(): Internal usage only. Registers one new subpkg per call.
# Takes any number of parameters. Each parameter must be in the form of
# "key:value". The key is what the variable would be called if it were a
@@ -1393,22 +1409,6 @@ Fsplit()
done
}

-##
-# * Fuse(): Checks a use variable. Parameter: a use variable. Example: Fuse
-# $USE_DEVEL.
-##
-Fuse()
-{
-	if [ "$1" = "n" ]; then
-		return 1
-	elif [ "$1" = "y" ]; then
-		return 0
-	else
-		Fmessage "Unknown use variable!"
-		Fdie
-	fi
-}
-
###
# * check_option(): Check if a logical flag is defined in options() or not.
# Parameter: name of the logical flag. Example: if [ "`check_option DEVEL`" ];


More information about the Frugalware-git mailing list