1
0
forked from GitHub/gf-core

Added grammar-dist target.

This commit is contained in:
bringert
2005-05-12 13:10:16 +00:00
parent 0834390209
commit 620550889f

View File

@@ -17,6 +17,8 @@ NOT_IN_DIST= \
BIN_DIST_DIR=$(DIST_DIR)-$(host)
GRAMMAR_DIST_DIR=GF-grammars-$(PACKAGE_VERSION)
SNAPSHOT_DIR=GF-$(shell date +%Y%m%d)
# use the temporary binary file name 'gf-bin' name to not clash with directory 'GF'
@@ -190,6 +192,15 @@ binary-dist:
gtar -zcf GF-$(PACKAGE_VERSION)-$(host).tgz $(BIN_DIST_DIR)
rm -rf $(BIN_DIST_DIR)
grammar-dist:
-rm -rf $(GRAMMAR_DIST_DIR)
mkdir $(GRAMMAR_DIST_DIR)
cvs export -d $(GRAMMAR_DIST_DIR) -rHEAD GF/{lib,examples}
mv $(GRAMMAR_DIST_DIR)/GF/* $(GRAMMAR_DIST_DIR)
rmdir $(GRAMMAR_DIST_DIR)/GF
gtar -zcf $(GRAMMAR_DIST_DIR).tgz $(GRAMMAR_DIST_DIR)
rm -rf $(GRAMMAR_DIST_DIR)
#
# Installation
#