Enforce USE=multilib.
authorJeremy Huddleston <eradicator@gentoo.org>
Thu, 13 Jan 2005 00:04:39 +0000 (00:04 +0000)
committerJeremy Huddleston <eradicator@gentoo.org>
Thu, 13 Jan 2005 00:04:39 +0000 (00:04 +0000)
profiles/default-linux/amd64/2005.0/profile.bashrc

index d40d27333fb4764b9f1cbf12ad60167aa2e4096a..7e0a27c5f21e53ad5302f0c541fb40e264237d23 100644 (file)
@@ -9,3 +9,22 @@ fi
 
 export CFLAGS_amd64
 export CFLAGS_x86
+
+hack_use_ml() {
+       local x
+       save_IFS
+       unset IFS
+       for x in ${USE}; do
+               if [ "${x}" = "multilib" ]; then
+                       restore_IFS
+                       return 0
+               fi
+       done
+       restore_IFS
+       return 1
+}
+
+if ! hack_use_ml; then
+        eerror "The 2005.0 profile requires that you have USE=multilib enabled."
+       exit 1
+fi