Git-Url:
http://git.frugalware.org/gitweb/gitweb.cgi?p=frugalware-current.git;a=commitdiff;h=3a5d754afc980d1987c0f09713a3ff26cb0a917b
commit 3a5d754afc980d1987c0f09713a3ff26cb0a917b
Author: VMiklos <[EMAIL PROTECTED]>
Date: Wed Sep 5 00:12:09 2007 +0200
new Fuse() function for USE_DEVEL variables
diff --git a/source/include/util.sh b/source/include/util.sh
index a9e6b82..50fdd03 100644
--- a/source/include/util.sh
+++ b/source/include/util.sh
@@ -963,6 +963,22 @@ 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`" ];
_______________________________________________
Frugalware-git mailing list
[email protected]
http://frugalware.org/mailman/listinfo/frugalware-git