From aaefe1d1370e0ba8b0713a76b2d735ee69c33990 Mon Sep 17 00:00:00 2001 From: "rodolfo.borges" Date: Wed, 19 Mar 2008 22:57:54 +0000 Subject: [PATCH] better name for release archives git-svn-id: https://cave9.googlecode.com/svn/trunk@60 13012bb5-4427-0410-85c5-5d3d33be36bb --- GNUmakefile | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/GNUmakefile b/GNUmakefile index ee4a148..6e16fd3 100644 --- a/GNUmakefile +++ b/GNUmakefile @@ -6,7 +6,8 @@ clean: release: @set -e; \ - dir=cave9.`date +%Y-%m-%d`; \ + date=`date +%Y-%m-%d`; \ + dir=cave9.$$date; \ rm -rf $$dir; mkdir $$dir; \ tar -cf - \ {AUTHORS,README,GNUmakefile} \ @@ -14,7 +15,8 @@ release: src/{main,display,game}.cpp src/{display,game,vec}.h \ src/{Makefile.cross,sfcave9.pl,cave9-global.pl} \ | tar -C $$dir -xf -; \ - tar -cvzf $$dir.tgz $$dir; \ + archive=cave9_src.$$date.tgz; \ + tar -cvzf $$archive $$dir; \ rm -rf $$dir; \ - ls -sh $$dir.tgz + ls -sh $$archive -- 2.11.4.GIT