Git-Url: 
http://git.frugalware.org/gitweb/gitweb.cgi?p=frugalware-current.git;a=commitdiff;h=7806846c1119f2badc1d23a6f91aac46f2d9dfa6

commit 7806846c1119f2badc1d23a6f91aac46f2d9dfa6
Author: Miklos Vajna <vmik...@frugalware.org>
Date:   Tue Dec 29 14:34:56 2009 +0100

t/*: unset all USE_FOO variable, not just _F_foo

diff --git a/t/groups b/t/groups
index b40e8ab..6100efd 100755
--- a/t/groups
+++ b/t/groups
@@ -14,7 +14,7 @@ do
cd `dirname $i`
startdir=`pwd`
unset groups
-       for j in `set|grep ^_F_|sed 's/\(=.*\| ()\)//'`; do unset $j; done
+       for j in `set|egrep '^(_F_|USE_)'|sed 's/\(=.*\| ()\)//'`; do unset $j; 
done
source FrugalBuild
if [ "$groups" != `pwd|sed 's|.*/\([^/]*\)/[^/]*|\1|'` ]; then
echo "`dirname $i`: should be moved to $groups (`grep Maintainer FrugalBuild 
|sed 's/.*: //'`)"
diff --git a/t/missing-clean.sh b/t/missing-clean.sh
index 5a54dda..aa9b144 100644
--- a/t/missing-clean.sh
+++ b/t/missing-clean.sh
@@ -49,7 +49,7 @@ do
[[ "$j" != "$1" ]] && continue
export CARCH=$j
unset pkgname subpkgs pkgver pkgrel pkgextraver source
-                       for k in `set|grep ^_F_|sed 's/\(=.*\| ()\)//'`; do 
unset $k; done
+                       for k in `set|egrep '^(_F_|USE_)'|sed 's/\(=.*\| 
()\)//'`; do unset $k; done
export startdir=`pwd`
. ./FrugalBuild || echo "errors parsing `pwd`/FrugalBuild for $j"
for k in $pkgname ${subpk...@]}
diff --git a/t/srcjunk b/t/srcjunk
index 69d698a..8810d6f 100755
--- a/t/srcjunk
+++ b/t/srcjunk
@@ -37,7 +37,7 @@ do
do
CARCH=$j
unset pkgver pkgextraver source signatures
-                       for k in `set|grep ^_F_|sed 's/\(=.*\| ()\)//'`; do 
unset $k; done
+                       for k in `set|egrep '^(_F_|USE_)'|sed 's/\(=.*\| 
()\)//'`; do unset $k; done
startdir=`pwd`
. ./FrugalBuild || echo "errors parsing the FrugalBuild for $pkgname"
for k in "${sour...@]}" "${signatur...@]}"
diff --git a/t/srcmissing b/t/srcmissing
index 6a9ccbe..a5171a5 100755
--- a/t/srcmissing
+++ b/t/srcmissing
@@ -31,7 +31,7 @@ do
[[ "$j" =~ '^!' ]] && continue
export CARCH=$j
unset pkgver pkgextraver source
-                       for k in `set|grep ^_F_|sed 's/\(=.*\| ()\)//'`; do 
unset $k; done
+                       for k in `set|egrep '^(_F_|USE_)'|sed 's/\(=.*\| 
()\)//'`; do unset $k; done
export startdir=`pwd`
. ./FrugalBuild || echo "errors parsing the FrugalBuild for $j"
for k in "${sour...@]}"
_______________________________________________
Frugalware-git mailing list
Frugalware-git@frugalware.org
http://frugalware.org/mailman/listinfo/frugalware-git

Reply via email to