Merge pull request #571 from igor725/master

getsha.bat is no longer needed
This commit is contained in:
UnknownShadow200 2019-03-11 22:23:22 +11:00 committed by GitHub
commit 47f9d72f6a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 5 additions and 8 deletions

2
.gitignore vendored
View File

@ -31,7 +31,7 @@ bld/
[sS]rc/options.txt
[sS]rc/ClassiCube*
[sS]rc/screenshots
[sS]rc/fontscache.txt
#GCC object files
*.o

View File

@ -1,9 +1,9 @@
CC=gcc
LIBS=-lGL -lcurl -lopenal -lpthread -lX11 -lm -ldl
LIBS=-lX11 -lpthread -lGL -lm -lcurl -lopenal -ldl
CFLAGS=-g -w -no-pie -rdynamic -pipe
SOURCES=$(wildcard *.c)
OBJECTS=$(patsubst %.c, %.o, $(SOURCES))
COMMITSHA=$(shell git rev-parse HEAD | cut -c '1-7')
COMMITSHA=$(shell git rev-parse --short HEAD)
EXECUTABLE=ClassiCube

View File

@ -1,9 +1,9 @@
CC=gcc
LIBS=-mwindows -lws2_32 -lwininet -lwinmm -limagehlp -ld3d9 -lcrypt32
LIBS=-mwindows -lws2_32 -lwininet -lwinmm -limagehlp -lcrypt32 -ld3d9
CFLAGS=-g -w -pipe
SOURCES=$(wildcard *.c)
OBJECTS=$(patsubst %.c, %.o, $(SOURCES))
COMMITSHA=$(shell getsha)
COMMITSHA=$(shell git rev-parse --short HEAD)
EXECUTABLE=ClassiCube

View File

@ -1,3 +0,0 @@
@echo off
for /f %%i in ('git rev-parse HEAD')do set SHA=%%i
<nul set/p=%SHA:~1,7%