Files
rpm-packaging/tools/run_renderspec.sh
Haikel Guemar 157f7329ba Use only bash parameter expansion
Small optimization that avoids forking a process to retrieve basename

Change-Id: I4844ba19525d4a3c7d88cfd6d2f3f3896768a113
2016-06-21 19:02:42 +02:00

19 lines
439 B
Bash
Executable File

#!/bin/bash
set -eux
basedir=$1
specdir=${basedir}/openstack/
WORKSPACE=${WORKSPACE:-$basedir}
echo "run renderspec over specfiles from ${specdir}"
for spec in ${specdir}/**/*.spec.j2; do
mkdir -p $WORKSPACE/logs/
for specstyle in "suse" "fedora"; do
echo "run ${spec} for ${specstyle}"
renderspec --spec-style ${specstyle} ${spec} \
-o $WORKSPACE/logs/${spec##*/}.${specstyle}
done
done