Skip to content

Commit

Permalink
Add buildnumber to versionstring.
Browse files Browse the repository at this point in the history
  • Loading branch information
Jimmy Christensen committed Feb 8, 2015
1 parent f8a7e83 commit 285e4f6
Show file tree
Hide file tree
Showing 6 changed files with 3 additions and 22 deletions.
4 changes: 0 additions & 4 deletions Makefile.gcw0
Expand Up @@ -29,10 +29,6 @@ ifneq ($(BUILD_NUMBER),)
DEFS +=-DBUILD_NUMBER="\"$(BUILD_NUMBER)\""
endif

ifneq ($(RELEASE_VERSION),)
DEFS +=-DRELEASE_VERSION="\"$(RELEASE_VERSION)\""
endif

INCS = -I. -I$(SYSROOT)/usr/include -I$(SYSROOT)/usr/include/SDL
CFLAGS=-Wall -Wextra
ifeq ($(DEBUG),)
Expand Down
4 changes: 0 additions & 4 deletions Makefile.linux
Expand Up @@ -32,10 +32,6 @@ ifneq ($(BUILD_NUMBER),)
DEFS +=-DBUILD_NUMBER="\"$(BUILD_NUMBER)\""
endif

ifneq ($(RELEASE_VERSION),)
DEFS +=-DRELEASE_VERSION="\"$(RELEASE_VERSION)\""
endif

INCS = -I. -I/usr/include -I/usr/include/SDL
CFLAGS=-Wall -Wextra -Werror
ifeq ($(DEBUG),)
Expand Down
4 changes: 0 additions & 4 deletions Makefile.win
Expand Up @@ -19,10 +19,6 @@ ifneq ($(BUILD_NUMBER),)
DEFS +=-DBUILD_NUMBER="\"$(BUILD_NUMBER)\""
endif

ifneq ($(RELEASE_VERSION),)
DEFS +=-DRELEASE_VERSION="\"$(RELEASE_VERSION)\""
endif

INCS = -I.
CFLAGS=-O3
LDFLAGS=$(CFLAGS)
Expand Down
3 changes: 0 additions & 3 deletions Makefile.wiz
Expand Up @@ -17,9 +17,6 @@ ifneq ($(BUILD_NUMBER),)
DEFS +=-DBUILD_NUMBER="\"$(BUILD_NUMBER)\""
endif

ifneq ($(RELEASE_VERSION),)
DEFS +=-DRELEASE_VERSION="\"$(RELEASE_VERSION)\""
endif

INCS = -I. -I$(OPEN2X)/include -I$(OPEN2X)/include/SDL
CFLAGS=-O3
Expand Down
6 changes: 1 addition & 5 deletions src/strings.h
Expand Up @@ -147,11 +147,7 @@
#define CODE_VERSION "1.0-dev"

#ifdef BUILD_NUMBER
#ifdef RELEASE_VERSION
#define VERSION_STRING RELEASE_VERSION"(B"BUILD_NUMBER")"
#else
#define VERSION_STRING CODE_VERSION"(B"BUILD_NUMBER")"
#endif
#define VERSION_STRING CODE_VERSION"(B"BUILD_NUMBER")"
#else
#define VERSION_STRING CODE_VERSION
#endif
Expand Down
4 changes: 2 additions & 2 deletions tools/contigrator_build.sh
Expand Up @@ -13,7 +13,7 @@ echo "Wizznic build script."

VERSION_LONG=build_$BN_NUM
VERSION=1.0-dev

BUILD_NUMBER=$BN_NUM

make -f Makefile.win clean
make -f Makefile.wiz clean
Expand All @@ -24,7 +24,7 @@ mv wizznic wizznic_linux_x64_precompiled
make -j 4 -f Makefile.linux clean

# The chrooted 32 bit linux version.
sudo -E -P USER=$USER USERNAME=$USER LOGNAME=$LOGNAME -- /usr/sbin/chroot /var/local/32bitDeb/ su -p -l $USER -c "cd /home/contigrator/jobs/Wizznic/workspace/ && make -j 4 -f Makefile.linux CC='ccache gcc'"
sudo -E -P USER=$USER USERNAME=$USER LOGNAME=$LOGNAME -- /usr/sbin/chroot /var/local/32bitDeb/ su -p -l $USER -c "cd /home/contigrator/jobs/Wizznic/workspace/ && make -j 4 -f Makefile.linux CC='ccache gcc' BUILD_NUMBER=$BN_NUM"
mv wizznic wizznic_linux_x86_precompiled

#Copy files around and package
Expand Down

0 comments on commit 285e4f6

Please sign in to comment.