Adding airship folder for packaging airship components
Change-Id: Ib1f537294dabd8dcc5757b35f69c9f6c14e2a501
This commit is contained in:
parent
8af3645023
commit
61ca7d7834
1
airship/README.rst
Normal file
1
airship/README.rst
Normal file
@ -0,0 +1 @@
|
|||||||
|
RPM Packaging for Airship Components
|
@ -7,7 +7,7 @@ basedir=${1:-$PWD}
|
|||||||
# 2nd positional arg is the find -name parameter
|
# 2nd positional arg is the find -name parameter
|
||||||
FIND_STR=${2:-*}
|
FIND_STR=${2:-*}
|
||||||
|
|
||||||
specdir=${basedir}/openstack/
|
specdirs="${basedir}/openstack/ ${basedir}/airship/"
|
||||||
|
|
||||||
WORKSPACE=${WORKSPACE:-$basedir}
|
WORKSPACE=${WORKSPACE:-$basedir}
|
||||||
OUTPUTDIR=$WORKSPACE/logs/
|
OUTPUTDIR=$WORKSPACE/logs/
|
||||||
@ -21,12 +21,14 @@ for specstyle in $specstyles; do
|
|||||||
done
|
done
|
||||||
|
|
||||||
count=0
|
count=0
|
||||||
echo "run renderspec over specfiles from ${specdir}"
|
echo "run renderspec over specfiles from ${specdirs}"
|
||||||
for specstyle in $specstyles; do
|
for specstyle in $specstyles; do
|
||||||
find ${specdir} -name "${FIND_STR}.spec.j2" -type f -print0 | \
|
for specdir in $specdirs; do
|
||||||
xargs -n 1 -0 -P 0 -I __SPEC__ bash -c "
|
find ${specdir} -name "${FIND_STR}.spec.j2" -type f -print0 | \
|
||||||
set -e
|
xargs -n 1 -0 -P 0 -I __SPEC__ bash -c "
|
||||||
pkg_name=\$(pymod2pkg --dist $specstyle \$(basename __SPEC__ .spec.j2))
|
set -e
|
||||||
renderspec --spec-style $specstyle __SPEC__ \
|
pkg_name=\$(pymod2pkg --dist $specstyle \$(basename __SPEC__ .spec.j2))
|
||||||
-o $WORKSPACE/logs/$specstyle/\$pkg_name.spec"
|
renderspec --spec-style $specstyle __SPEC__ \
|
||||||
|
-o $WORKSPACE/logs/$specstyle/\$pkg_name.spec"
|
||||||
|
done
|
||||||
done
|
done
|
||||||
|
Loading…
Reference in New Issue
Block a user