Shift how rpm artifact is kept.
authorBrian Aker <brian@tangent.org>
Sun, 9 Feb 2014 10:35:11 +0000 (02:35 -0800)
committerBrian Aker <brian@tangent.org>
Sun, 9 Feb 2014 10:35:11 +0000 (02:35 -0800)
bootstrap.sh

index 6f6821b765ff3fe10ab1650f868c6fb413e1f232..c4418fdcc7c6c62025e1938d718812059ce2d0ec 100755 (executable)
@@ -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