suite_dir=${PWD}
all_dirs=`ls -l --time-style="long-iso" $suite_dir | grep '^d' | awk '{print $8}'`
black_dirs=''
+signing_black_dirs=''
#black list reserved for some non-suite folders.
if [ -f "$suite_dir/blackdirs" ]; then
echo "Got black dirs: $black_dirs"
fi
+#signning black list reserved for some non-signing folders.
+if [ -f "$suite_dir/signing_blackdirs" ]; then
+ signing_black_dirs=`cat $suite_dir/signing_blackdirs`
+ echo "Got signing black dirs: $signing_black_dirs"
+fi
+
function check_blackdir()
{
for bdir in ${black_dirs[@]}; do
return 0
}
+function check_signing_blackdir()
+{
+ for signing_bdir in ${signing_black_dirs[@]}; do
+ if [ $1 == $signing_bdir ]; then
+ return 1;
+ fi
+ done
+ return 0
+}
+
# parse spec required name
NAME=`grep "Name:" *.spec | awk '{print $2}'`
if [ -z "$NAME" ];then
pack_fail='TRUE'
echo "Create $app.wgt fail, continue to pack others"
else
+ check_signing_blackdir $app
+ if [ $? == 1 ];then
+ echo "Got a signing black dir: $app"
+ cd $suite_dir
+ continue
+ fi
if [ -d "../../signing" ]; then
echo "Start sign wgt ..."
cd ../../signing
suite_dir=${PWD}
all_dirs=`ls -l --time-style="long-iso" $suite_dir | grep '^d' | awk '{print $8}'`
black_dirs=''
+signing_black_dirs=''
#black list reserved for some non-suite folders.
if [ -f "$suite_dir/blackdirs" ]; then
echo "Got black dirs: $black_dirs"
fi
+#signning black list reserved for some non-signing folders.
+if [ -f "$suite_dir/signing_blackdirs" ]; then
+ signing_black_dirs=`cat $suite_dir/signing_blackdirs`
+ echo "Got signing black dirs: $signing_black_dirs"
+fi
+
function check_blackdir()
{
for bdir in ${black_dirs[@]}; do
return 0
}
+function check_signing_blackdir()
+{
+ for signing_bdir in ${signing_black_dirs[@]}; do
+ if [ $1 == $signing_bdir ]; then
+ return 1;
+ fi
+ done
+ return 0
+}
+
# parse spec required name
NAME=`grep "Name:" *.spec | awk '{print $2}'`
if [ -z "$NAME" ];then
pack_fail='TRUE'
echo "Create $app.wgt fail, continue to pack others"
else
+ check_signing_blackdir $app
+ if [ $? == 1 ];then
+ echo "Got a signing black dir: $app"
+ cd $suite_dir
+ continue
+ fi
if [ -d "../../signing" ]; then
echo "Start sign wgt ..."
cd ../../signing
suite_dir=${PWD}
all_dirs=`ls -l --time-style="long-iso" $suite_dir | grep '^d' | awk '{print $8}'`
black_dirs=''
+signing_black_dirs=''
#black list reserved for some non-suite folders.
if [ -f "$suite_dir/blackdirs" ]; then
echo "Got black dirs: $black_dirs"
fi
+#signning black list reserved for some non-signing folders.
+if [ -f "$suite_dir/signing_blackdirs" ]; then
+ signing_black_dirs=`cat $suite_dir/signing_blackdirs`
+ echo "Got signing black dirs: $signing_black_dirs"
+fi
+
function check_blackdir()
{
for bdir in ${black_dirs[@]}; do
return 0
}
+function check_signing_blackdir()
+{
+ for signing_bdir in ${signing_black_dirs[@]}; do
+ if [ $1 == $signing_bdir ]; then
+ return 1;
+ fi
+ done
+ return 0
+}
+
# parse spec required name
NAME=`grep "Name:" *.spec | awk '{print $2}'`
if [ -z "$NAME" ];then
pack_fail='TRUE'
echo "Create $app.wgt fail, continue to pack others"
else
+ check_signing_blackdir $app
+ if [ $? == 1 ];then
+ echo "Got a signing black dir: $app"
+ cd $suite_dir
+ continue
+ fi
if [ -d "../../signing" ]; then
echo "Start sign wgt ..."
cd ../../signing
suite_dir=${PWD}
all_dirs=`ls -l --time-style="long-iso" $suite_dir | grep '^d' | awk '{print $8}'`
black_dirs=''
+signing_black_dirs=''
#black list reserved for some non-suite folders.
if [ -f "$suite_dir/blackdirs" ]; then
echo "Got black dirs: $black_dirs"
fi
+#signning black list reserved for some non-signing folders.
+if [ -f "$suite_dir/signing_blackdirs" ]; then
+ signing_black_dirs=`cat $suite_dir/signing_blackdirs`
+ echo "Got signing black dirs: $signing_black_dirs"
+fi
+
function check_blackdir()
{
for bdir in ${black_dirs[@]}; do
return 0
}
+function check_signing_blackdir()
+{
+ for signing_bdir in ${signing_black_dirs[@]}; do
+ if [ $1 == $signing_bdir ]; then
+ return 1;
+ fi
+ done
+ return 0
+}
+
# parse spec required name
NAME=`grep "Name:" *.spec | awk '{print $2}'`
if [ -z "$NAME" ];then
pack_fail='TRUE'
echo "Create $app.wgt fail, continue to pack others"
else
+ check_signing_blackdir $app
+ if [ $? == 1 ];then
+ echo "Got a signing black dir: $app"
+ cd $suite_dir
+ continue
+ fi
if [ -d "../../signing" ]; then
echo "Start sign wgt ..."
cd ../../signing
suite_dir=${PWD}
all_dirs=`ls -l --time-style="long-iso" $suite_dir | grep '^d' | awk '{print $8}'`
black_dirs=''
+signing_black_dirs=''
#black list reserved for some non-suite folders.
if [ -f "$suite_dir/blackdirs" ]; then
echo "Got black dirs: $black_dirs"
fi
+#signning black list reserved for some non-signing folders.
+if [ -f "$suite_dir/signing_blackdirs" ]; then
+ signing_black_dirs=`cat $suite_dir/signing_blackdirs`
+ echo "Got signing black dirs: $signing_black_dirs"
+fi
+
function check_blackdir()
{
for bdir in ${black_dirs[@]}; do
return 0
}
+function check_signing_blackdir()
+{
+ for signing_bdir in ${signing_black_dirs[@]}; do
+ if [ $1 == $signing_bdir ]; then
+ return 1;
+ fi
+ done
+ return 0
+}
+
# parse spec required name
NAME=`grep "Name:" *.spec | awk '{print $2}'`
if [ -z "$NAME" ];then
pack_fail='TRUE'
echo "Create $app.wgt fail, continue to pack others"
else
+ check_signing_blackdir $app
+ if [ $? == 1 ];then
+ echo "Got a signing black dir: $app"
+ cd $suite_dir
+ continue
+ fi
if [ -d "../../signing" ]; then
echo "Start sign wgt ..."
cd ../../signing
suite_dir=${PWD}
all_dirs=`ls -l --time-style="long-iso" $suite_dir | grep '^d' | awk '{print $8}'`
black_dirs=''
+signing_black_dirs=''
#black list reserved for some non-suite folders.
if [ -f "$suite_dir/blackdirs" ]; then
echo "Got black dirs: $black_dirs"
fi
+#signning black list reserved for some non-signing folders.
+if [ -f "$suite_dir/signing_blackdirs" ]; then
+ signing_black_dirs=`cat $suite_dir/signing_blackdirs`
+ echo "Got signing black dirs: $signing_black_dirs"
+fi
+
function check_blackdir()
{
for bdir in ${black_dirs[@]}; do
return 0
}
+function check_signing_blackdir()
+{
+ for signing_bdir in ${signing_black_dirs[@]}; do
+ if [ $1 == $signing_bdir ]; then
+ return 1;
+ fi
+ done
+ return 0
+}
+
# parse spec required name
NAME=`grep "Name:" *.spec | awk '{print $2}'`
if [ -z "$NAME" ];then
pack_fail='TRUE'
echo "Create $app.wgt fail, continue to pack others"
else
+ check_signing_blackdir $app
+ if [ $? == 1 ];then
+ echo "Got a signing black dir: $app"
+ cd $suite_dir
+ continue
+ fi
if [ -d "../../signing" ]; then
echo "Start sign wgt ..."
cd ../../signing
suite_dir=${PWD}
all_dirs=`ls -l --time-style="long-iso" $suite_dir | grep '^d' | awk '{print $8}'`
black_dirs=''
+signing_black_dirs=''
#black list reserved for some non-suite folders.
if [ -f "$suite_dir/blackdirs" ]; then
echo "Got black dirs: $black_dirs"
fi
+#signning black list reserved for some non-signing folders.
+if [ -f "$suite_dir/signing_blackdirs" ]; then
+ signing_black_dirs=`cat $suite_dir/signing_blackdirs`
+ echo "Got signing black dirs: $signing_black_dirs"
+fi
+
function check_blackdir()
{
for bdir in ${black_dirs[@]}; do
return 0
}
+function check_signing_blackdir()
+{
+ for signing_bdir in ${signing_black_dirs[@]}; do
+ if [ $1 == $signing_bdir ]; then
+ return 1;
+ fi
+ done
+ return 0
+}
+
# parse spec required name
NAME=`grep "Name:" *.spec | awk '{print $2}'`
if [ -z "$NAME" ];then
pack_fail='TRUE'
echo "Create $app.wgt fail, continue to pack others"
else
+ check_signing_blackdir $app
+ if [ $? == 1 ];then
+ echo "Got a signing black dir: $app"
+ cd $suite_dir
+ continue
+ fi
if [ -d "../../signing" ]; then
echo "Start sign wgt ..."
cd ../../signing
suite_dir=${PWD}
all_dirs=`ls -l --time-style="long-iso" $suite_dir | grep '^d' | awk '{print $8}'`
black_dirs=''
+signing_black_dirs=''
#black list reserved for some non-suite folders.
if [ -f "$suite_dir/blackdirs" ]; then
echo "Got black dirs: $black_dirs"
fi
+#signning black list reserved for some non-signing folders.
+if [ -f "$suite_dir/signing_blackdirs" ]; then
+ signing_black_dirs=`cat $suite_dir/signing_blackdirs`
+ echo "Got signing black dirs: $signing_black_dirs"
+fi
+
function check_blackdir()
{
for bdir in ${black_dirs[@]}; do
return 0
}
+function check_signing_blackdir()
+{
+ for signing_bdir in ${signing_black_dirs[@]}; do
+ if [ $1 == $signing_bdir ]; then
+ return 1;
+ fi
+ done
+ return 0
+}
+
# parse spec required name
NAME=`grep "Name:" *.spec | awk '{print $2}'`
if [ -z "$NAME" ];then
pack_fail='TRUE'
echo "Create $app.wgt fail, continue to pack others"
else
+ check_signing_blackdir $app
+ if [ $? == 1 ];then
+ echo "Got a signing black dir: $app"
+ cd $suite_dir
+ continue
+ fi
if [ -d "../../signing" ]; then
echo "Start sign wgt ..."
cd ../../signing