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
+/srv/git/bin/git submodule update --init --recursive
git clean -fdx
DISTS=`cat ../../dists`
exit 4
fi
-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-nss $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 --
echo "$0: no ccache found, compiles will be slower." 1>&2
fi
-#
-# Build Source tarball. We do this after runing autogen/configure so that
-# ceph.spec has the correct version number filled in.
-echo "**** Building Tarball ***"
-make dist-bzip2
+echo --START-IGNORE-WARNINGS
+[ ! -x install-deps.sh ] || ./install-deps.sh
+
+# we only need to use autogen here if we need a dist tarball
+if [ -x make-dist ]; then
+ echo --STOP-IGNORE-WARNINGS
+ ./make-dist
+else
+ [ ! -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-nss $CEPH_EXTRA_CONFIGURE_ARGS || exit 2
+
+ if [ ! -e Makefile ]; then
+ echo "$0: no Makefile, aborting." 1>&2
+ exit 3
+ fi
+
+ #
+ # Build Source tarball. We do this after runing autogen/configure so that
+ # ceph.spec has the correct version number filled in.
+ echo "**** Building Tarball ***"
+ make dist-bzip2
+fi
# Set up build area
BUILDAREA=./rpmbuild
printf '%s\n' "ceph" >"$OUTDIR_TMP/name"
#mkdir -p $OUTDIR_TMP/conf
-#MACH="$(uname -m)"
-#INSTDIR="inst.tmp"
-#[ ! -e "$INSTDIR" ]
-#../maxtime 1800 ionice -c3 nice -n20 make install DESTDIR="$PWD/$INSTDIR"
-#tar czf "$OUTDIR_TMP/ceph.$MACH.tgz" -C "$INSTDIR" .
-#rm -rf -- "$INSTDIR"
-
# Copy RPMS to output repo
for dir in ${BUILDAREA}/SRPMS ${BUILDAREA}/RPMS/*
do