You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@bigtop.apache.org by ab...@apache.org on 2011/08/03 22:36:18 UTC

svn commit: r1153654 - in /incubator/bigtop/trunk: Makefile bigtop.mk

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