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