From: Brian Aker Date: Sun, 9 Feb 2014 10:35:11 +0000 (-0800) Subject: Shift how rpm artifact is kept. X-Git-Tag: pre_cmake~99^2~1 X-Git-Url: https://git.m6w6.name/?a=commitdiff_plain;h=8c406df883b9d49abe134b4bd74afc102019df8e;p=awesomized%2Flibmemcached Shift how rpm artifact is kept. --- diff --git a/bootstrap.sh b/bootstrap.sh index 6f6821b7..c4418fdc 100755 --- a/bootstrap.sh +++ b/bootstrap.sh @@ -1010,17 +1010,16 @@ make_rpm () { if command_exists 'rpmbuild'; then if [ -f 'rpm.am' -o -d 'rpm' ]; then - mkdir -p ~/rpmbuild/{BUILD,RPMS,SOURCES,SPECS,SRPMS} - mkdir -p ~/rpmbuild/RPMS/{i386,i486,i586,i686,noarch,athlon} - run_configure_if_required make_target 'dist-rpm' - mkdir artifacts - cp *gz *rpm artifacts - if $jenkins_build_environment; then - make_target 'clean' + mkdir artifacts + mv *gz *rpm artifacts + + make_target 'maintainer-clean' + mv artifacts/* . + rmdir artifacts fi fi