blob: 6205fb916d7c244da5805e9a8db710da9b7bebcf [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
10rpmbuild -ba --define "_version $version" --define "_release $release" /root/rpmbuild/SPECS/openbmctool.spec
11cp /root/rpmbuild/RPMS/noarch/openbmctool-$version-$release.noarch.rpm /tmp/openbmctool-$version-$release/
12