From 909b31ae7b772b611a4217aec9aaa4b3381e9d30 Mon Sep 17 00:00:00 2001 From: Sage Weil Date: Wed, 22 Jun 2016 08:54:59 -0400 Subject: [PATCH] remove build-ceph-deb.sh We don't use it! Signed-off-by: Sage Weil --- build-ceph-deb.sh | 90 ----------------------------------------------- 1 file changed, 90 deletions(-) delete mode 100755 build-ceph-deb.sh diff --git a/build-ceph-deb.sh b/build-ceph-deb.sh deleted file mode 100755 index 146b0b3..0000000 --- a/build-ceph-deb.sh +++ /dev/null @@ -1,90 +0,0 @@ -#!/bin/sh -x -set -e - -git submodule foreach 'git clean -fdx && git reset --hard' -rm -rf ceph-object-corpus -rm -rf ceph-erasure-code-corpus -rm -rf src/gmock -rm -rf src/leveldb -rm -rf src/libs3 -rm -rf src/mongoose -rm -rf src/civetweb -rm -rf src/rocksdb -rm -rf src/erasure-code/jerasure/gf-complete -rm -rf src/erasure-code/jerasure/jerasure -rm -rf .git/modules/ -git clean -fdx && git reset --hard -/srv/git/bin/git submodule sync -/srv/autobuild-ceph/use-mirror.sh -/srv/git/bin/git submodule update --init -git clean -fdx - - -DISTS=`cat ../../dists` - -echo --START-IGNORE-WARNINGS -[ ! -x install-deps.sh ] || ./install-deps.sh -[ ! -x autogen.sh ] || ./autogen.sh || exit 1 -autoconf || true -echo --STOP-IGNORE-WARNINGS -[ -z "$CEPH_EXTRA_CONFIGURE_ARGS" ] && CEPH_EXTRA_CONFIGURE_ARGS=--with-tcmalloc -[ ! -x configure ] || ./configure --with-debug --with-radosgw --with-fuse --with-libatomic-ops --with-gtk2 --with-profiler --enable-cephfs-java $CEPH_EXTRA_CONFIGURE_ARGS || exit 2 - -if [ ! -e Makefile ]; then - echo "$0: no Makefile, aborting." 1>&2 - exit 3 -fi - -# Actually build the project - -# clear out any $@ potentially passed in -set -- - -# enable ccache if it is installed -export CCACHE_DIR="$PWD/../../ccache" -if command -v ccache >/dev/null; then - if [ ! -e "$CCACHE_DIR" ]; then - echo "$0: have ccache but cache directory does not exist: $CCACHE_DIR" 1>&2 - else - set -- CC='ccache gcc' CXX='ccache g++' - fi -else - echo "$0: no ccache found, compiles will be slower." 1>&2 -fi - -# build the debs -mkdir -p release -GNUPGHOME="/srv/gnupg" ionice -c3 nice -n20 /srv/ceph-build/build_snapshot.sh release /srv/debian-base $DISTS - -VER=`cd release && ls` -echo "VER is $VER" - -REV="$(git rev-parse HEAD)" -OUTDIR="../out/output/sha1/$REV" -OUTDIR_TMP="${OUTDIR}.tmp" -install -d -m0755 -- "$OUTDIR_TMP" -printf '%s\n' "$REV" >"$OUTDIR_TMP/sha1" -printf '%s\n' "$VER" >"$OUTDIR_TMP/version" -printf '%s\n' "ceph" >"$OUTDIR_TMP/name" - -mkdir -p $OUTDIR_TMP/conf -/srv/ceph-build/gen_reprepro_conf.sh $OUTDIR_TMP 03C3951A -GNUPGHOME="/srv/gnupg" /srv/ceph-build/push_to_repo.sh release $OUTDIR_TMP $VER main - -# we're successful, the files are ok to be published; try to be as -# atomic as possible about replacing potentially existing OUTDIR -if [ -e "$OUTDIR" ]; then - rm -rf -- "$OUTDIR.old" - mv -- "$OUTDIR" "$OUTDIR.old" -fi -mv -- "$OUTDIR_TMP" "$OUTDIR" -rm -rf -- "$OUTDIR.old" - -# rebuild combined debian repo output -( - cd ../out/output - rm -rf combined - GNUPGHOME="/srv/gnupg" /srv/ceph-build/merge_repos.sh combined sha1/* -) - -exit 0 -- 2.39.5