summaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
authorRomain d'Alverny <rda@mageia.org>2011-04-28 21:52:57 +0000
committerRomain d'Alverny <rda@mageia.org>2011-04-28 21:52:57 +0000
commitb3e0b9ecef9556ca43a06df69b761169e1432aa4 (patch)
treec95eebdbc03710505377c735d8282bd86ec5ee9f /Makefile
parent240dfd732454a88d97d4e2c4f1f93ae9f580865b (diff)
downloadindexhtml-b3e0b9ecef9556ca43a06df69b761169e1432aa4.tar
indexhtml-b3e0b9ecef9556ca43a06df69b761169e1432aa4.tar.gz
indexhtml-b3e0b9ecef9556ca43a06df69b761169e1432aa4.tar.bz2
indexhtml-b3e0b9ecef9556ca43a06df69b761169e1432aa4.tar.xz
indexhtml-b3e0b9ecef9556ca43a06df69b761169e1432aa4.zip
add a date stamp to archive
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile7
1 files changed, 4 insertions, 3 deletions
diff --git a/Makefile b/Makefile
index 4376403..3f4b414 100644
--- a/Makefile
+++ b/Makefile
@@ -1,5 +1,6 @@
PACKAGE = indexhtml
-VERSION:= 1
+VERSION = 1
+DATE = `date +%Y%m%d`
SVN_URL := $(shell svn info | grep ^URL: | cut -f2 -d\ )
SVN_BASE := $(shell svn info | sed -n '/^URL: \(.*\/$(PACKAGE)\).*/s//\1/p')
@@ -26,8 +27,8 @@ localcopy:
svn export -q . $(PACKAGE)-$(VERSION)
tar:
- tar cvf $(PACKAGE)-$(VERSION).tar $(PACKAGE)-$(VERSION)
- bzip2 -9vf $(PACKAGE)-$(VERSION).tar
+ tar cvf $(PACKAGE)-$(VERSION).$(DATE).tar $(PACKAGE)-$(VERSION)
+ bzip2 -9vf $(PACKAGE)-$(VERSION).$(DATE).tar
rm -rf $(PACKAGE)-$(VERSION)