From 14e891f3e6444ae68de48358b16b9c1aed93688d Mon Sep 17 00:00:00 2001 From: Franck Charlet Date: Wed, 16 Mar 2011 21:58:04 +0000 Subject: [PATCH] using cut instead of tr to extract svn revision to generate archive name git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@1758 416bcca6-2ee7-4201-b75f-2eb2f807beb1 --- src/Makefile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Makefile b/src/Makefile index a3549238..c2aef751 100644 --- a/src/Makefile +++ b/src/Makefile @@ -96,7 +96,7 @@ else # Where the SDL frameworks are located FWDIR = /Library/Frameworks BIN = ../bin/grafx2 - SVN_REVISION = $(shell svnversion | tr -d "M") + SVN_REVISION = $(shell svnversion | cut -f1 -d ":" -) SDLCOPT = $(MACOSX_ARCH) -I$(FWDIR)/SDL.framework/Headers -I$(FWDIR)/SDL_image.framework/Headers -I$(FWDIR)/SDL_ttf.framework/Headers -D_THREAD_SAFE #-framework SDL_ttf SDLLOPT = -isysroot $(MACOSX_SYSROOT) $(MACOSX_ARCH) -L/usr/lib -framework SDL -framework SDL_image -framework Cocoa -framework Carbon -framework OpenGL @@ -410,7 +410,7 @@ $(MACAPPEXE) : $(BIN) cp $(BIN) $(MACAPPEXE) $(STRIP) -x -X -S $(MACAPPEXE) chmod +x $(MACAPPEXE) - tar cvzf grafx2-$(SVN_REVISION)-macosx.tgz Grafx2.app/* + tar cvzf grafx2-svn$(SVN_REVISION)-macosx.tgz Grafx2.app/* else all : $(BIN) endif