Return-Path: X-Original-To: apmail-incubator-bigtop-commits-archive@minotaur.apache.org Delivered-To: apmail-incubator-bigtop-commits-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 5DEB77E4F for ; Wed, 3 Aug 2011 20:36:43 +0000 (UTC) Received: (qmail 36522 invoked by uid 500); 3 Aug 2011 20:36:43 -0000 Delivered-To: apmail-incubator-bigtop-commits-archive@incubator.apache.org Received: (qmail 36492 invoked by uid 500); 3 Aug 2011 20:36:42 -0000 Mailing-List: contact bigtop-commits-help@incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: bigtop-dev@incubator.apache.org Delivered-To: mailing list bigtop-commits@incubator.apache.org Received: (qmail 36481 invoked by uid 99); 3 Aug 2011 20:36:42 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 03 Aug 2011 20:36:42 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=5.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.4] (HELO eris.apache.org) (140.211.11.4) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 03 Aug 2011 20:36:39 +0000 Received: from eris.apache.org (localhost [127.0.0.1]) by eris.apache.org (Postfix) with ESMTP id B344623888C2; Wed, 3 Aug 2011 20:36:18 +0000 (UTC) Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: svn commit: r1153654 - in /incubator/bigtop/trunk: Makefile bigtop.mk Date: Wed, 03 Aug 2011 20:36:18 -0000 To: bigtop-commits@incubator.apache.org From: abayer@apache.org X-Mailer: svnmailer-1.0.8 Message-Id: <20110803203618.B344623888C2@eris.apache.org> X-Virus-Checked: Checked by ClamAV on apache.org Author: abayer Date: Wed Aug 3 20:36:18 2011 New Revision: 1153654 URL: http://svn.apache.org/viewvc?rev=1153654&view=rev Log: BIGTOP-6 Add tarball generation to top-level makefile. "make dist" will now clean everything, create a dist directory, copy everything into a "bigtop-$(BIGTOP_VERSION)" directory there, and then create a dist/bigtop-$(BIGTOP_VERSION).tar.gz file from that directory's contents. Modified: incubator/bigtop/trunk/Makefile incubator/bigtop/trunk/bigtop.mk Modified: incubator/bigtop/trunk/Makefile URL: http://svn.apache.org/viewvc/incubator/bigtop/trunk/Makefile?rev=1153654&r1=1153653&r2=1153654&view=diff ============================================================================== --- incubator/bigtop/trunk/Makefile (original) +++ incubator/bigtop/trunk/Makefile Wed Aug 3 20:36:18 2011 @@ -18,6 +18,7 @@ BUILD_DIR ?=$(BASE_DIR)/build DL_DIR ?=$(BASE_DIR)/dl OUTPUT_DIR?=$(BASE_DIR)/output REPO_DIR ?=$(BASE_DIR)/src +DIST_DIR ?=$(BASE_DIR)/dist REQUIRED_DIRS = $(BUILD_DIR) $(DL_DIR) $(OUTPUT_DIR) _MKDIRS :=$(shell for d in $(REQUIRED_DIRS); \ @@ -60,6 +61,7 @@ package-help: help-header $(TARGETS_HELP clean: $(TARGETS_CLEAN) -rm -rf $(BUILD_DIR) -rm -rf $(OUTPUT_DIR) + -rm -rf $(DIST_DIR) realclean: clean -rm -rf $(DL_DIR) @@ -81,5 +83,10 @@ relnotes: $(TARGETS_RELNOTES) checkenv: ./check-env.sh +dist: realclean + mkdir -p $(DIST_DIR) + rsync -avz --exclude=.svn --exclude=.git --exclude=dist "$(BASE_DIR)/" "$(DIST_DIR)/bigtop-$(BIGTOP_VERSION)" + cd $(DIST_DIR) && tar -cvzf "$(DIST_DIR)/bigtop-$(BIGTOP_VERSION).tar.gz" "bigtop-$(BIGTOP_VERSION)" + .DEFAULT_GOAL:= help .PHONY: clean package-help help-header packages all world help srpm sdeb Modified: incubator/bigtop/trunk/bigtop.mk URL: http://svn.apache.org/viewvc/incubator/bigtop/trunk/bigtop.mk?rev=1153654&r1=1153653&r2=1153654&view=diff ============================================================================== --- incubator/bigtop/trunk/bigtop.mk (original) +++ incubator/bigtop/trunk/bigtop.mk Wed Aug 3 20:36:18 2011 @@ -13,7 +13,7 @@ # See the License for the specific language governing permissions and # limitations under the License. -BIGTOP_VERSION=1 +BIGTOP_VERSION=0.1.0-incubating # Hadoop 0.20.0-based hadoop package HADOOP_NAME=hadoop