~brianaker/libmemcached/gear-clean

« back to all changes in this revision

Viewing changes to bootstrap.sh

  • Committer: Continuous Integration
  • Date: 2014-02-07 08:19:51 UTC
  • mfrom: (1182.1.2 libmemcached-1.0)
  • Revision ID: ci@tangent.org-20140207081951-j4l29xxx8o8zd6z2
Merge bzr://10.0.3.21/ Build: jenkins-Libmemcached-457

Show diffs side-by-side

added added

removed removed

Lines of Context:
1098
1098
 
1099
1099
  if $use_libtool; then
1100
1100
    assert $BOOTSTRAP_LIBTOOLIZE
1101
 
    run "$BOOTSTRAP_LIBTOOLIZE" '--copy' '--install' '--force' || die "Cannot execute $BOOTSTRAP_LIBTOOLIZE"
 
1101
    if $jenkins_build_environment; then
 
1102
      run "$BOOTSTRAP_LIBTOOLIZE" '--copy' '--install' || die "Cannot execute $BOOTSTRAP_LIBTOOLIZE"
 
1103
    else
 
1104
      run "$BOOTSTRAP_LIBTOOLIZE" '--copy' '--install' '--force' || die "Cannot execute $BOOTSTRAP_LIBTOOLIZE"
 
1105
    fi
1102
1106
  fi
1103
1107
 
1104
1108
  run "$AUTORECONF" "$AUTORECONF_ARGS" || die "Cannot execute $AUTORECONF"
1239
1243
  fi
1240
1244
 
1241
1245
  if [[ -z "$GNU_BUILD_FLAGS" ]]; then
1242
 
    GNU_BUILD_FLAGS="--install --force"
 
1246
    if $jenkins_build_environment; then
 
1247
      GNU_BUILD_FLAGS="--install"
 
1248
    else
 
1249
      GNU_BUILD_FLAGS="--install --force"
 
1250
    fi
1243
1251
  fi
1244
1252
 
1245
1253
  if $verbose; then
1557
1565
      check_make_target $target
1558
1566
      ret=$?
1559
1567
      if [ $ret -ne 0 ]; then
1560
 
        die "Unknown BOOTSTRAP_TARGET option: $target"
 
1568
        warn "Unknown BOOTSTRAP_TARGET option: $target"
 
1569
        target="jenkins"
1561
1570
      fi
1562
1571
    fi
1563
1572
 
1732
1741
    BOOTSTRAP_TARGET="$OPT_TARGET"
1733
1742
  fi
1734
1743
 
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
1744
  if [ -z "$BOOTSTRAP_TARGET" ]; then
1754
1745
    BOOTSTRAP_TARGET="make_default"
1755
1746
  fi