From 82b94e3ff98809e84cd858febe636dce5aa69cb2 Mon Sep 17 00:00:00 2001 From: Jarrod Johnson Date: Mon, 14 Jun 2021 16:12:01 -0400 Subject: [PATCH] Add build script for imgutil --- imgutil/buildrpm | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100755 imgutil/buildrpm 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