diff --git a/imgutil/buildrpm b/imgutil/buildrpm new file mode 100755 index 00000000..8f7f034b --- /dev/null +++ b/imgutil/buildrpm @@ -0,0 +1,12 @@ +#!/bin/bash +VERSION=`git describe|cut -d- -f 1` +NUMCOMMITS=`git describe|cut -d- -f 2` +if [ "$NUMCOMMITS" != "$VERSION" ]; then + VERSION=$VERSION.dev$NUMCOMMITS.g`git describe|cut -d- -f 3` +fi +sed -e "s/#VERSION#/$VERSION/" conlfuent_imgutil.spec.tmpl > confluent_imgutil.spec +cd .. +tar Jcvf confluent_imgutil.tar.xz imgutil +mv confluent_imgutil.tar.xz ~/rpmbuild/SOURCES/ +cd - +rpmbuild -ba confluent_osdeploy.spec