~d-ci/libmemcached/pushtest

« back to all changes in this revision

Viewing changes to bootstrap.sh

  • Committer: Continuous Integration
  • Date: 2014-02-16 11:31:37 UTC
  • mfrom: (1112.1.1 1.2)
  • Revision ID: ci@tangent.org-20140216113137-fzl2orb8qf4osv42
Merge bzr://soup.haus/ Build: jenkins-Libmemcached-473

Show diffs side-by-side

added added

removed removed

Lines of Context:
1010
1010
{
1011
1011
  if command_exists 'rpmbuild'; then
1012
1012
    if [ -f 'rpm.am' -o -d 'rpm' ]; then
1013
 
      mkdir -p ~/rpmbuild/{BUILD,RPMS,SOURCES,SPECS,SRPMS}
1014
 
      mkdir -p ~/rpmbuild/RPMS/{i386,i486,i586,i686,noarch,athlon}
1015
 
 
1016
1013
      run_configure_if_required
1017
 
      make_target 'rpm'
 
1014
      make_target 'dist-rpm'
1018
1015
 
1019
1016
      if $jenkins_build_environment; then
1020
 
        make_target 'clean'
 
1017
        mkdir artifacts
 
1018
        mv *.tar.gz *.rpm artifacts
 
1019
 
 
1020
        make_target 'maintainer-clean'
 
1021
        mv artifacts/* .
 
1022
        rmdir artifacts
1021
1023
      fi
1022
1024
 
1023
1025
    fi
1098
1100
 
1099
1101
  if $use_libtool; then
1100
1102
    assert $BOOTSTRAP_LIBTOOLIZE
1101
 
    run "$BOOTSTRAP_LIBTOOLIZE" '--copy' '--install' '--force' || die "Cannot execute $BOOTSTRAP_LIBTOOLIZE"
 
1103
    if $jenkins_build_environment; then
 
1104
      run "$BOOTSTRAP_LIBTOOLIZE" '--copy' '--install' || die "Cannot execute $BOOTSTRAP_LIBTOOLIZE"
 
1105
    else
 
1106
      run "$BOOTSTRAP_LIBTOOLIZE" '--copy' '--install' '--force' || die "Cannot execute $BOOTSTRAP_LIBTOOLIZE"
 
1107
    fi
1102
1108
  fi
1103
1109
 
1104
1110
  run "$AUTORECONF" "$AUTORECONF_ARGS" || die "Cannot execute $AUTORECONF"
1239
1245
  fi
1240
1246
 
1241
1247
  if [[ -z "$GNU_BUILD_FLAGS" ]]; then
1242
 
    GNU_BUILD_FLAGS="--install --force"
 
1248
    if $jenkins_build_environment; then
 
1249
      GNU_BUILD_FLAGS="--install"
 
1250
    else
 
1251
      GNU_BUILD_FLAGS="--install --force"
 
1252
    fi
1243
1253
  fi
1244
1254
 
1245
1255
  if $verbose; then
1557
1567
      check_make_target $target
1558
1568
      ret=$?
1559
1569
      if [ $ret -ne 0 ]; then
1560
 
        die "Unknown BOOTSTRAP_TARGET option: $target"
 
1570
        warn "Unknown BOOTSTRAP_TARGET option: $target"
 
1571
        target="jenkins"
1561
1572
      fi
1562
1573
    fi
1563
1574
 
1732
1743
    BOOTSTRAP_TARGET="$OPT_TARGET"
1733
1744
  fi
1734
1745
 
1735
 
  # If we are running under Jenkins we predetermine what tests we will run against
1736
 
  # This BOOTSTRAP_TARGET can be overridden by parse_command_line_options based BOOTSTRAP_TARGET changes.
1737
 
  # We don't want Jenkins overriding other variables, so we NULL them.
1738
 
  if [ -z "$BOOTSTRAP_TARGET" ]; then
1739
 
    if $jenkins_build_environment; then
1740
 
      if [[ -n "$JENKINS_TARGET" ]]; then
1741
 
        check_make_target $JENKINS_TARGET
1742
 
        if [ $? -eq 0 ]; then
1743
 
          BOOTSTRAP_TARGET="$JENKINS_TARGET"
1744
 
        else
1745
 
          die "label not found: $label"
1746
 
        fi
1747
 
      else
1748
 
          BOOTSTRAP_TARGET='jenkins'
1749
 
      fi
1750
 
    fi
1751
 
  fi
1752
 
 
1753
1746
  if [ -z "$BOOTSTRAP_TARGET" ]; then
1754
1747
    BOOTSTRAP_TARGET="make_default"
1755
1748
  fi