Git-Url: 
http://git.frugalware.org/gitweb/gitweb.cgi?p=xfcetesting.git;a=commitdiff;h=22287dad30839e66fa81dc6b5c59eaf77541fc7c

commit 22287dad30839e66fa81dc6b5c59eaf77541fc7c
Author: Michel Hermier <[email protected]>
Date:   Wed Apr 20 08:57:19 2011 +0200

srcjunk

* Create reset_env as in srcmissing.

diff --git a/t/srcjunk b/t/srcjunk
index 6fa5aa0..c69f1ec 100755
--- a/t/srcjunk
+++ b/t/srcjunk
@@ -12,6 +12,13 @@ CHROOT=1
. /etc/makepkg.conf
. /usr/lib/frugalware/fwmakepkg

+reset_env () {
+       unset archs install nobuild options pkgname pkgver pkgextraver source 
sha1sums
+       for k in `set|egrep '^(_F_|USE_)'|sed 's/\(=.*\| ()\)//'`; do unset $k; 
done
+
+       export Fpkgversep='-' startdir=`pwd`
+}
+
if [ "$1" == "--remove" ]; then
remove="y"
shift
@@ -29,17 +36,13 @@ CWD=`pwd`
for i in `find source -name FrugalBuild`
do
cd `dirname $i` || continue
-       startdir=`pwd`
-       unset pkgver nobuild options archs
-       Fpkgversep='-'
+       reset_env
. ./FrugalBuild || echo "errors parsing the FrugalBuild"
if [ ! -z "$pkgname" -a ! "$nobuild" -a ! "`check_option NOBUILD`" ]; then
for j in ${archs[@]}
do
CARCH=$j
-                       unset pkgver pkgextraver source signatures
-                       for k in `set|egrep '^(_F_|USE_)'|sed 's/\(=.*\| 
()\)//'`; do unset $k; done
-                       startdir=`pwd`
+                       reset_env
. ./FrugalBuild || echo "errors parsing the FrugalBuild for $pkgname"
for k in "${source[@]}" "${signatures[@]}"
do
_______________________________________________
Frugalware-git mailing list
[email protected]
http://frugalware.org/mailman/listinfo/frugalware-git

Reply via email to