Commit 89f620aa authored by POGODALLA Sylvain's avatar POGODALLA Sylvain

No commit message

No commit message
parent c6310e4a
......@@ -17,11 +17,12 @@
# #
##########################################################################
PHONY: config byte opt clean superclean install tar
PHONY: config byte opt clean superclean install tar version release
BINARIES=acgc acgc.opt acg acg.opt
RELEASE = $(shell date "+acg-%y-%m-%d")
VERSION = $(shell date "+%Y-%m-%d")
RELEASE = acg-$(VERSION)
AR_EXCLUDE =
......@@ -62,9 +63,14 @@ config: configure
configure: config/configure.ac
cd $(<D) && autoconf && mv configure .. & cd ..
tar: superclean
tar: version superclean
if test -a ../$(RELEASE) ; then rm ../$(RELEASE) ; fi
cd .. && ln -s trunk $(RELEASE) && cd trunk
tar cvfz $(RELEASE).tar.gz -C .. -h $(RELEASE) --exclude="*\.svn*" --exclude "$(RELEASE)/data" --exclude "$(RELEASE)/src/data" --exclude "$(RELEASE)/src/*.old" --exclude "$(RELEASE)/*.tar*"
if test -a ../$(RELEASE) ; then rm ../$(RELEASE) ; fi
./configure
version :
sed -i 's/@VERSION@/$(VERSION)/' src/utils/version.ml
release :
\ No newline at end of file
......@@ -17,7 +17,7 @@
(* *)
(**************************************************************************)
DEFINE VERSION= "081021"
DEFINE VERSION= "@VERSION@"
let version = VERSION
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment