File pre-checkin.sh of Package rook-ceph-image
#!/bin/bash
#
# Generate the kiwi file for the given target.
image="rook-ceph-image"
target=${1:-tumbleweed}
if [ ! -e ${target}.xml ]; then
echo "Unknown target: ${target}.xml must exist!"
exit 1
fi
xsltproc "${image}.xsl" "${target}.xml" > "${image}.kiwi"