blob: 504f85ca5b82e1dee0fc65d10b91c0ea24e0ddca [file] [log] [blame]
Justin Thaler35e3a042018-07-23 18:43:04 -05001#!/usr/bin/bash
2echo "Version: ex 1.0"
3read version
4echo "Release: ex 4"
5read release
6mkdir -p /tmp/openbmctool-$version-$release
7rm -rf /tmp/openbmctool-$version-$release/*
8cp ../* /tmp/openbmctool-$version-$release
9tar -cvzf /root/rpmbuild/SOURCES/openbmctool-$version-$release.tgz -C /tmp openbmctool-$version-$release
Nagaraju Gorugantic1a00af2018-11-07 00:52:11 -060010rpmbuild -ba --define "_version $version" --define "_release $release" /root/rpmbuild/SPECS/openbmctool.spec
Justin Thaler35e3a042018-07-23 18:43:04 -050011cp /root/rpmbuild/RPMS/noarch/openbmctool-$version-$release.noarch.rpm /tmp/openbmctool-$version-$release/
12