Justin Thaler | 35e3a04 | 2018-07-23 18:43:04 -0500 | [diff] [blame] | 1 | #!/usr/bin/bash |
| 2 | echo "Version: ex 1.0" |
| 3 | read version |
| 4 | echo "Release: ex 4" |
| 5 | read release |
| 6 | mkdir -p /tmp/openbmctool-$version-$release |
| 7 | rm -rf /tmp/openbmctool-$version-$release/* |
| 8 | cp ../* /tmp/openbmctool-$version-$release |
| 9 | tar -cvzf /root/rpmbuild/SOURCES/openbmctool-$version-$release.tgz -C /tmp openbmctool-$version-$release |
Nagaraju Goruganti | c1a00af | 2018-11-07 00:52:11 -0600 | [diff] [blame] | 10 | rpmbuild -ba --define "_version $version" --define "_release $release" /root/rpmbuild/SPECS/openbmctool.spec |
Justin Thaler | 35e3a04 | 2018-07-23 18:43:04 -0500 | [diff] [blame] | 11 | cp /root/rpmbuild/RPMS/noarch/openbmctool-$version-$release.noarch.rpm /tmp/openbmctool-$version-$release/ |
| 12 | |