Merge "Clean up output dir before creating new renderspecs"
This commit is contained in:
commit
ed53256d13
@ -6,11 +6,19 @@ basedir=$1
|
|||||||
specdir=${basedir}/openstack/
|
specdir=${basedir}/openstack/
|
||||||
|
|
||||||
WORKSPACE=${WORKSPACE:-$basedir}
|
WORKSPACE=${WORKSPACE:-$basedir}
|
||||||
|
OUTPUTDIR=$WORKSPACE/logs/
|
||||||
|
specstyles="suse fedora"
|
||||||
|
|
||||||
|
mkdir -p $OUTPUTDIR
|
||||||
|
|
||||||
|
# clean up output dir
|
||||||
|
for specstyle in $specstyles; do
|
||||||
|
rm -f $OUTPUTDIR/*.${specstyle}
|
||||||
|
done
|
||||||
|
|
||||||
echo "run renderspec over specfiles from ${specdir}"
|
echo "run renderspec over specfiles from ${specdir}"
|
||||||
for spec in ${specdir}/**/*.spec.j2; do
|
for spec in ${specdir}/**/*.spec.j2; do
|
||||||
mkdir -p $WORKSPACE/logs/
|
for specstyle in $specstyles; do
|
||||||
for specstyle in "suse" "fedora"; do
|
|
||||||
echo "run ${spec} for ${specstyle}"
|
echo "run ${spec} for ${specstyle}"
|
||||||
renderspec --spec-style ${specstyle} ${spec} \
|
renderspec --spec-style ${specstyle} ${spec} \
|
||||||
-o $WORKSPACE/logs/${spec##*/}.${specstyle}
|
-o $WORKSPACE/logs/${spec##*/}.${specstyle}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user