From 91cdab237af705206fbe9b9395fe0714b22683b7 Mon Sep 17 00:00:00 2001 From: William Kendrick Date: Mon, 10 Oct 2005 03:01:17 +0000 Subject: [PATCH] Created 'release' Makefile target, which generates a .tar.gz. Moved "VER_VERSION" to Makefile (where 'release' can pick it up), and made "VER_DATE" a dynamically-generated Makefile variable. --- Makefile | 25 ++++++++++++++++++++++--- docs/CHANGES.txt | 6 ++++++ src/tuxpaint.c | 5 ++--- 3 files changed, 30 insertions(+), 6 deletions(-) diff --git a/Makefile b/Makefile index 5884bc4ae..c9d21cdb1 100644 --- a/Makefile +++ b/Makefile @@ -2,11 +2,17 @@ # Tux Paint - A simple drawing program for children. -# Copyright (c) 2005 by Bill Kendrick +# Copyright (c) 2005 by Bill Kendrick and others # bill@newbreedsoftware.com # http://www.newbreedsoftware.com/tuxpaint/ -# June 14, 2002 - October 2, 2005 +# June 14, 2002 - October 9, 2005 + + +# The version number, for release: + +VER_VERSION=0.9.15 +VER_DATE=`date +"%Y-%m-%d"` # Where to install things: @@ -94,7 +100,9 @@ CFLAGS=-O2 -W -Wall -fno-common -ffast-math \ -Wbad-function-cast -Wwrite-strings \ -Waggregate-return \ -Wstrict-prototypes -Wmissing-prototypes \ - -Wdeclaration-after-statement + -Wdeclaration-after-statement \ + -DVER_VERSION=\"$(VER_VERSION)\" \ + -DVER_DATE=\"$(VER_DATE)\" DEFS=-DDATA_PREFIX=\"$(DATA_PREFIX)/\" \ -D$(NOSOUNDFLAG) -DDOC_PREFIX=\"$(DOC_PREFIX)/\" \ @@ -114,6 +122,17 @@ all: tuxpaint translations @echo "to install Tux Paint." @echo +release: + @echo + @echo "Creating release tarball" + @ + @make clean + -@rm -f ../tuxpaint-$(VER_VERSION).tar + @cd .. ; \ + find tuxpaint-$(VER_VERSION) -follow \ + \( -wholename '*/CVS' -o -name .cvsignore \) \ + -prune -o -type f -print0 | \ + xargs -0 tar -czvf tuxpaint-$(VER_VERSION).tar.gz # "make nosound" builds the program with sound disabled, and man page, diff --git a/docs/CHANGES.txt b/docs/CHANGES.txt index 6abbd2ab9..68968a648 100644 --- a/docs/CHANGES.txt +++ b/docs/CHANGES.txt @@ -235,6 +235,12 @@ http://www.newbreedsoftware.com/tuxpaint/ * Compiling, porting and packaging updates: ----------------------------------------- + * Created 'release' Makefile target, which generates a .tar.gz + (sans CVS-related files) based on the clean source directory. + + * Moved "VER_VERSION" to Makefile (where 'release' can pick it up), + and made "VER_DATE" a dynamically-generated Makefile variable. + * Added additional Windows-only search paths for stamps, fonts and brushes. John Popplewell diff --git a/src/tuxpaint.c b/src/tuxpaint.c index 8421054f7..8a1ee66d6 100644 --- a/src/tuxpaint.c +++ b/src/tuxpaint.c @@ -22,12 +22,11 @@ Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA (See COPYING.txt) - June 14, 2002 - October 6, 2005 + June 14, 2002 - October 9, 2005 */ -#define VER_VERSION "0.9.15" -#define VER_DATE "2005-10-09" +/* (Note: VER_VERSION and VER_DATE are now handled by Makefile) */ /* Color depth for Tux Paint to run in, and store canvases in: */